1 Reply Latest reply on Nov 21, 2011 9:55 PM by fabiobfonseca

    Problem with pickList, is losing selected values

    oscarvargas

      I'm using a pick list with richfaces 3.3.2 inside a form, after submitting, if there is a validation error, the form is loaded again and the selected values missing, I mean the pick list is not showing what the user selected.

       

      The xhtml code is:

       

       

      <gd:repeat id="repeat" value="#{bean.items}" var="establecimiento" idVar="rid" >

       

      ...              

       

       

       

      <rich:pickList style="height:148px" showButtonsLabel="false" height="150px" id="picklistID"

       

      value="#{bean2.selected}" required="true"

      copyAllVisible="false"

      requiredMessage="Validation messages.">

      <f:selectItems value="#{values}" />

      </rich:pickList>

       

       

       

       

       

       

       

              ...

      </gd:repeat>

       

      Thanks for your help