0 Replies Latest reply: Jul 18, 2012 12:56 PM by 950361 RSS

    Is it possible to have a selectManyListBox within <ui:repeat> ?

    950361
      Can I have a selectManyListBox within a <ui:repeat> or that is completely wrong ? I can displayed the values properly , however I cant retrieve the selected items in my list.

      An error is displayed "myform:j_idt117:0:j_idt119:0:_t121: Validation Error: Value is not valid"

      ..........
      <ui:repeat value="#{row}" var="t" >

      <h:selectManyListbox value="#{myBean.selectedItems}">
      <f:selectItem itemValue="#{t.attributeName[1]}"
      itemLabel="#{t.attributeName[1]}" />
      <f:selectItem itemValue="#{t.attributeName[2]}"
      itemLabel="#{t.attributeName[2]}" />
      .............
      </h:selectManyListbox>

      </ui:repeat>