JBoss.org Community Documentation

3.2.2.3. Portlet urls

It is also possible to output URLs targeting a given portlet. This can be used to create controls to change the mode or window state of the portlet. The portleturl tag outputs such URLs and insert them in the page.

<portal:portlet name="JSPPortlet" applicationName="samples-jsp-portlet">
   ...
   <portal:portleturl windowState="maximized" mode="edit"/>
   ...
</portal:portlet>

Example 3.3. Portlet URL


The portleturl tag has two optional attributes. The windowState attribute allows to change the window state of the associated portlet while the mode attribute controls the portlet mode.