0 Replies Latest reply on May 8, 2013 9:47 AM by Raja R

    I will not be able to get right side value of picklist in my bean

    Raja R Newbie

       

      <

      rich:pickList value="#{searchBean.selectedAudirors}" sourceCaption="Available Auditors"

      targetCaption

      ="Assigned Auditors" listWidth="165px" listHeight="100px" orderable="true">

       

      <f:selectItems value="#{searchBean.auditorsSelection}"

      />

      </

      rich:pickList>

       

      /PickList to get list of available Auditors

       

      private

       

      SelectItem[] auditorsSelection;

       

      public

       

      public

       

      SelectItem[] getAuditorsSelection() {

       

       

       

      auditorsSelection

       

      =new

      SelectItem[

      requestList.size()];

      for

      (int i=0;i<requestList.size();i++){

       

      auditorsSelection

       

      SelectItem(

      requestList.get(i).getAuditorId());}

       

      return

       

      auditorsSelection

      ;

       

       

       

       

       

      public

       

      }

       

       

      public List<String> getSelectedAudirors() {

       

       

       

       

      return selectedAudirors;

      }

       

      private List<String> selectedAudirors;

       

       

       

      void setSelectedAudirors(List<String> selectedAudirors) {

       

       

      this.selectedAudirors = selectedAudirors;

       

      void setAuditorsSelection(SelectItem[] auditorsSelection) {

       

      this

       

      .auditorsSelection

      = auditorsSelection;

       

      }