This project contains a workspace of Liferay 7.x with several modules. All of them are PoC projects that shows how you can do stuff with Liferay 7 and OSGi.
- Clone master brench
- Import the project in your IDE (Eclipse/IntelliJ)
- Compile with gradle
- Copy the jar inside the folder
LIFERAY_HOME/deploy/
That's it!
This module shows how to create a MVCPortlet with configuration capabilities. This code allows you to setup a dynamic title for the Portlet and the most significant files are:
- config.jsp : here you can create the HTML page with the form of configuration. Remember to use the
preferences--portletTitle--syntax - ConfigurableMvcPortlet.java : the class that exposes the MVCPortlet
- ConfigurableConfigurationAction.java : the class that provides the action command's business logic to the MVCPortlet
It's quite simple, and you can find some comments inside the code, if you have any questions or doubts please write me and I will add more docs!