Enabling Two-Phase rendering support in JSR 286 Portlets

0 comments



By default, two-phase rendering is turned off. To enable two-phase rendering for a portlet, you must update the portlet.xml deployment descriptor for the portlet.

By enabling Two-Phase Rendering, one can setup cookies, http headers or page title dynamically.

Add the following entry to the file:

<portlet>
...
<container-runtime-option>
<name>javax.portlet.renderHeaders</name>
<value>true</value>
</container-runtime-option>
</portlet>


No comments:

Post a Comment

Recent Posts

Popular Posts

© 2011-2019 Web Portal Club