Using Multiple RichFaces Portlets in the Same Page with JBoss Portlet Bridge

As noted here, there are known issues even if you set org.jboss.portletbridge.WRAP_SCRIPTS to true.

You may want to set org.jboss.portletbridge.WRAP_SCRIPTS to false (which is the default), set org.richfaces.LoadScriptStrategy to NONE and load the scripts in your pages:

<a4j:loadScript src="resource:////org/ajax4jsf/framework.pack.js" type="text/javascript" />
<a4j:loadScript src="resource:////org/richfaces/ui.pack.js" type="text/javascript" />

How to Add Command Buttons to Data Tables with RichFaces 3.3.x


<?xml version="1.0"?>
<faces-config version="1.2" xmlns="" xmlns:xsi="" xsi:schemaLocation="">
    <managed-bean-scope>session</managed-bean-scope> <!-- required as mentioned in -->


<?xml version="1.0" encoding="ISO-8859-1"?>
<ui:composition xmlns="" xmlns:f="" xmlns:h="" xmlns:rich="" xmlns:ui="">
    <rich:dataTable value="#{sample.itemList}" var="item">
        <f:facet name="header">
          <h:outputText value="Message" />
        <h:outputText value="#{item.msg}" />
        <f:facet name="header">
          <h:outputText value="Action" />
        <h:commandButton action="#{sample.sendMessage}" value="Say Hello">
          <f:setPropertyActionListener target="#{sampleBean.msg}" value="#{item.msg}" />

How to Set JSF Tag Attributes Dynamically

<?xml version="1.0" encoding="ISO-8859-1"?>
<ui:composition xmlns="" xmlns:a4j="" xmlns:h="" xmlns:ui="">
  <a4j:outputPanel rendered="#{...}">
    <h:outputText value="First Value" />
  <a4j:outputPanel rendered="#{!...}">
    <h:outputText value="Second Value" />

Thanks to Sérgio for the correction to the original post.

JSF Anti-Patterns and Pitfalls

  1. The Validating Setter
  2. The Map Trick
  3. The Déjà vu PhaseListener
  4. XML Fetishism
  5. Thread Safety
  6. Facelets Migration Challenge: Tags with Behavior
  7. Law of Demeter
  8. Code to Interface
  9. View State Encryption
  10. Portlet Issues