xmlns:pbr="http://jboss.org/portletbridge"
Portlet Bridge supports the following tags from section PLT.26 of the Portlet 2.0 Spec (JSR 286):
actionURL
renderURL
resourceURL
namespace
param
property
When using the tag library, the following namespace needs to be added to your facelet page:
xmlns:pbr="http://jboss.org/portletbridge"
Using the renderURL tag it's possible to generate a Portlet Render URL that would enable switching between Portlet Modes, such as this:
<pbr:renderURL var="renderUrl" portletMode="edit"> </pbr:renderURL> <h:outputLink value="#{renderUrl}">Edit Mode</h:outputLink>
The namespace is particularly useful for prefixing JavaScript functions within a given portlet to ensure that the JavaScript function name doesn't clash with a name from another portlet, or from the same portlet displayed on the same page multiple times. An example for defining a JavaScript method is:
<script type='text/javascript'> function <pbr:namespace />DoSomething() { } </script>