8 Replies Latest reply on Apr 7, 2010 10:07 AM by Rodrigo Mendoza

    rich:pickList

    Rodrigo Mendoza Novice

      Hi, I'm having problems using r:pickList when I do this way, works fine...

       

      <r:pickList id="clientesAgenciaPickList" style="text-align: left;" showButtonsLabel="false"
           value="#{pedidoBBean.clientesAgencia}" immediate="true">
           <f:selectItem itemLabel="Option 1" itemValue="1041"/>
           <f:selectItem itemLabel="Option 2" itemValue="413"/>
           <f:selectItem itemLabel="Option 3" itemValue="3"/>
           <f:selectItem itemLabel="Option 4" itemValue="4"/>
           <f:selectItem itemLabel="Option 5" itemValue="637"/>
           <f:selectItem itemLabel="Option 6" itemValue="555"/>
           <f:selectItem itemLabel="Option 7" itemValue="444"/>
           <f:selectItem itemLabel="Option 8" itemValue="333"/>
           <f:selectItem itemLabel="Option 9" itemValue="456"/>
           <f:selectItem itemLabel="Option 10" itemValue="56"/>
           <f:selectItem itemLabel="Option 11" itemValue="10411"/>
           <f:selectItem itemLabel="Option 12" itemValue="4131"/>
           <f:selectItem itemLabel="Option 13" itemValue="31"/>
           <f:selectItem itemLabel="Option 14" itemValue="41"/>
           <f:selectItem itemLabel="Option 15" itemValue="6371"/>
      </r:pickList>
      

       

       

      bien.JPG

       

      But when I’m using selectItems instead, displays only the left list and don’t pay attention to the values pre selected

       

       

       

      <r:pickList id="clientesAgenciaPickList" style="text-align: left;" showButtonsLabel="false"
           value="#{pedidoBBean.clientesAgencia}" immediate="true">
           <f:selectItems value="#{pedidoBBean.selectItemsClientesAgencia}"/>
      </r:pickList>
      

       

      mal.JPG

       

      pedidoBBean.clientesAgencia is :

       

       

      String x[] = {"1041", "413", "637"}; 
      this.setClientesAgencia(x);
      

       

      This ids ("1041", "413", "637") are into the pedidoBBean.selectItemsClientesAgencia to

       

       

      Any help would be appreciated

       

      Thank you