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

    How to iterate a togglePanel?

    Roy Smith Newbie

      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>