How do you get portlet preferences in Liferay?
In order to add a configurable portlet preference to the portlet, you must do the following things:
- Specify a Configuration JSP in the portlet.
- Create the Configuration JSP for Displaying the Portlet Preference Options.
- Create a Configuration Action Implementation Class for Processing the Portlet Preference Value.
How do I embed a portlet into a theme?
Embedding a Portlet by Portlet Name
- Open the FreeMarker theme template that you want to embed the portlet in. ( portal_normal. ftl is a good choice.
- Add the liferay_portlet[“runtime”] macro to the template, as shown below. The portlet name must be the same as javax.portlet.name ‘s value.
How do you get a portlet name in Liferay?
Fetching a Portlet ID To get the ID of the portlet that performs an action on an entity, pass that entity and action as arguments to the PortletProviderUtil method getPortletId . For example, this call gets the ID of a portlet for viewing Recycle Bin entries: String portletId = PortletProviderUtil. getPortletId( “com.
How do I embed a portlet inside a portlet in Liferay 7?
The first thing you should do is open the template file for which you want to declare an embedded portlet….You must create a module that can find the portlet that fits the theme’s request.
- Create an OSGi module.
- Create a unique package name in the module’s src directory, and create a new Java class in that package.
What is portlet preferences in Liferay?
Portlet preferences can be added to any MVC Portlet to give users a UI to access and set their preferences. Note, portlet preferences are properties that are stored separately from an application’s configuration. To learn more see Portlet Level Configuration.
Which framework should I use to develop my portlet?
You’re free to use any framework you prefer to develop your portlets, including Struts, Spring MVC, or JSF. Here we’ll use the Liferay MVCPortlet framework, because it’s simple, lightweight, and easy to understand.
Why Liferay mvcportlet framework?
Here we’ll use the Liferay MVCPortlet framework, because it’s simple, lightweight, and easy to understand. You don’t have to be a Java developer to take advantage of Liferay’s built-in features (such as user and organization management, page building and content management).
Can I run a ruby or PHP portlet in Liferay?
An application developed using Ruby or PHP can be deployed as a portlet using the Plugins SDK, and it will run seamlessly inside of Liferay. For examples, check out the liferay-plugins repository from Github.
What can I do with Liferay?
Developing a mobile app that leverages Liferay as its back-end, which you can write in a fraction of the normal time thanks to Liferay Screens and Liferay Mobile SDK. Developing a custom theme that adapts the look and feel of the platform to the visual needs of your project.