Configuration mode in Liferay 5.2 SP3

Creating custom mode in liferay portlet



To create Configuration mode in liferay first of all you need to make entry in liferay-portlet.xml

<configuration-action-class>com.custom.portlets.action.ConfigurationActionImpl</configuration-action-class>
ConfigurationActionImpl extends BaseConfigurationAction which is available in portal-kernal.jar

Basically you need to implement two methods inside this class
1) Render()
2) ProcessAction()
Render method takes PortletConfig, RenderRequest, RenderResponse and returns the configuration page (Page to display in custom mode)



Create Action URL

<liferay-portlet:actionurl portletconfiguration="true" var="addURL"> <portlet:param name="resourcePrimKey" value="<%=Id %>"></portlet:param> </liferay-portlet:actionurl>


Next PostNewer Post Previous PostOlder Post Home