0 Replies Latest reply on Aug 18, 2017 7:02 PM by 3514454

    <af:SelectManyChoice - disabled ALL and create "nothing"

    3514454

      This is my first post...  

      Need HELP!!! I have this:

       

      Need:

       

      Where:

      Select"Todo" = Select All

      Select"Ninguno" = Unselect All (Only selected "Ninguno")

       

      how make?

       

      The months load are a java list ..., the .jspx view:

       

      <af:selectManyChoice label="Meses" id="xxx"

                                            valuePassThru="true" autoSubmit="false"

                                            visible="true"

                                            disabled="false"

                                            value="#{viewScope.DatosBean.operacion.mesesLista}"

                                            valueChangeListener="#{viewScope.DatosOperacionBean.obtenerMesesNoPago}">

           <af:forEach items="#{viewScope.DatosBean.mesesList}"

                                           var="row" >

                  <af:selectItem label="#{row.nombreGenerico}"

                                          id="yyy"

                                          value="#{row.codigoGenerico}"/>

           </af:forEach>

      </af:selectManyChoice>

       

       

      Thnks, bb