2 Replies Latest reply on Jul 22, 2010 2:52 AM by xyzzy07

    How to iterate a togglePanel?

    xyzzy07

      I have a List of objects (people) and I want to create a togglePanel for each person. But f:facet won't accept an EL for name so how can I workaround this? The error is "According to TLD or attribute directive in tag file, attribute name does not accept any expressions"

       

       

      <rich:togglePanel switchType="client" id="people"
      stateOrder="#{contactsBean.people}">
      <a4j:repeat value="#{contactsBean.people}" var="person">
         <f:facet name="#{person.id}">  <!-- this throws an error -->
           <h:outputText value="Details for person #{person.name}" />
         </f:facet>
      </a4j:repeat>
      </rich:togglePanel>