1 Reply Latest reply on Feb 26, 2013 10:04 AM by Cory Dahlstrom

    Seam 2.3 + Richfaces 4 + a4j:repeat

    Cory Dahlstrom Novice

      Hello,

       

      We are upgrading our application to Seam 2.3 and have an issue with the a4j:repeat component.  What is happening is, when we loop over a collection of entity beans, we call out to another Seam bean with the value currently in the "var" attribute which will be the current entity bean.  The Seam bean method does get called, but the value of the entity bean is alway null.

       

      For Example:

       

      <a4j:repeat value="#{someCollectionOfBeans}" var="someBean">

           ....

           <h:outputText value="Testing" rendered="#{anotherSeamBean.isTestingRendered(someBean)}" />

           ....

      </a4j:repeat>

       

      The "isTestingRendered" method does get called, but with a value of null.  This used to work fine in Seam 2.1.1GA, Richfaces 3.

       

      Has anyone seen this and/or know of a solution?

       

      Thanks,

       

      Cory.

        • 1. Re: Seam 2.3 + Richfaces 4 + a4j:repeat
          Cory Dahlstrom Novice

          I did find a work around for this.  This seems to work instead:

           

          <a4j:repeat value="#{someCollectionOfBeans}" var="someBean" rowKeyVar="someRowKey">

               ....

               <h:outputText value="Testing" rendered="#{anotherSeamBean.isTestingRendered(someCollectionOfBeans.get(someRowKey)}" />

               ....

          </a4j:repeat>

           

          The method call gets populated with the correct bean from the collection.