JBoss Community Archive (Read Only)

Portlet Bridge 3.3

Portlet Tags

Portlet Bridge supports the following tags from section PLT.26 of the Portlet 2.0 Spec (JSR 286):

When using the tag library, the following namespace needs to be added to your facelet page:

xmlns:pbr="http://jboss.org/portletbridge"

renderURL

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>

namespace

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>

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-11 12:28:52 UTC, last content change 2012-09-05 20:29:58 UTC.