3 Replies Latest reply on Jan 20, 2012 4:55 PM by Steve Stair

    <rich:pickList>  saved selected value not populate on page load

    swastik padhy Newbie

      Hi,

       

                    I am using richface 4.1. In the <rich:pickList> , I selected few values and saved that in the database. On page load  these saved value are not comming in the selected list.

       

      In the .XHTML file

      <rich:pickList value="#{master.selListName}"  sourceCaption="Available Name" targetCaption="Selected Name" 
                                                                listWidth="165px" listHeight="100px" orderable="false"  >
                      <f:selectItems value="#{master.matList}" />
      
                  </rich:pickList>
      
      

       

      in the Bean

       

       

      @ManagedBean(name="master")
      @ViewScoped
      public class MasterBean {
      private List<SelectItem> matList;
      private List<SelectItem> selListName;
      
      @postconstruct
      public void init(){
       //loading the saved values of selListName from the db
      
      }
      
      
      +getter & setter
      }
      
      

       

       

      Thanks,

      Swastik