Type: Technical Task
Affects Version/s: 7.0.6 CE GA7, 7.1.0 CE GA1
When an ActionURL is invoked for a portlet deployed to Liferay Portal, the ACTION_PHASE, EVENT_PHASE, and RENDER_PHASE execute within the scope of a single HTTP POST request. However, when the action-url-redirect option is set to true in liferay-portlet.xml, Liferay Portal will instead follow the POST-REDIRECT-GET design pattern.
Portlet 3.0 provides the ability for the developer to set a public or private render parameter in either the ACTION_PHASE or EVENT_PHASE of the portlet lifecycle using StateAwareResponse.getRenderParameters() (MutableRenderParameters). When this occurs and action-url-redirect=true, the parameters must be present in the RenderURL that is used for redirection so that they will be available in the subsequent RENDER_PHASE.
- Download the attached com.liferay.test.lps85903.portlet-1.0.0.war artifact and copy to $LIFERAY_HOME/deploy
- Add "com.liferay.test.lps85903.portlet" to a portal page
- Reload the portal page
- Click on the "Submit and redirect" button
The portlet renders the following:
The portlet renders "FAIL" for any one of the three render parameters listed above.