3 Replies Latest reply on Jun 1, 2011 8:26 AM by Tauseef Ahmed

    nested ui:repeat

    Alejandro Alves Newbie

      Hello,
      I am trying to do a nested ui:repeat, the problem is that I get from the second ui:repeat is only the last value.
      I am suppose to get


      monday - 10:00 11:00 13:00
      tuesday- 12:00 13:00 15:00


      and I get


      monday - 12:00 13:00 15:00
      tuesday- 12:00 13:00 15:00


      this is my jsp:

                              <ui:repeat id="itemvalues" value="#{asignarPeriodo.calendario}" var="dia" >
                                       <s:decorate template="layout/edit.xhtml" >
                                             <ui:define name="label">#{dia.nombre}</ui:define>
                                       </s:decorate>
                                     
                                      <ui:repeat value="#{dia.particiones}" var="particion" >
                                              <s:decorate template="layout/edit.xhtml" >
                                                      <ui:define name="label">#{particion.text}</ui:define>
                                                      <h:selectOneMenu value="#{particion.hora}" required="true" >
                                                              <s:selectItems value="#{asignarPeriodo.hours}" var="hour" label="#{hour}"/>
                                                  </h:selectOneMenu>   
                                                      <h:selectOneMenu value="#{particion.minuto}" required="true" >
                                                              <s:selectItems value="#{asignarPeriodo.minutes}" var="hour" label="#{hour}"/>
                                                  </h:selectOneMenu>                                           
                                              </s:decorate>            
                                      </ui:repeat>
                              </ui:repeat>