1 Reply Latest reply on Oct 25, 2007 11:56 AM by Sergey Smirnov

    Generation ids for JSF components placed in <a4j:repeator>

    he6o Newbie

      Hi All!

      I have two pieces of code:

      part 1:

      <a4j:repeat id="list" binding="#{blaBean.uiRepeat}" var="item" value="#{blaBean.materialOrders}">
       <h:inputText id="amount#{item.id}" value="#{item.quantity}"/>
      </a4j:repeat>


      part 2:
      <c:forEach items="#{blaBean.materialOrders}" var="item">
       <h:inputText id="amount#{item.id}" value="#{item.quantity}"/>
      </c:forEach>
      


      In second part I get right "id" generation (amount1, amout2 ... and so on) but the result of first part is (amout, amount , amount)


      Could anybody help me make right "id" generation within <a4j:repeat>?