0
votes

I created my rich:pickList by follow an example from richfaces http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=pickList&skin=blueSky

My problem is that no information display in Selected list. So how can I get it ?

My Edit.xhtml file:
<rich:pickList value="#{controller.selectedStudent}" var="f" sourceCaption="Available" targetCaption="Selected" listWidth="195px" listHeight="100px" orderable="true">
    <f:selectItems value="#{controller.studentList}" var="test" itemValue="#{test}" itemLabel="#{test.name}" />
</rich:pickList>
1

1 Answers

0
votes

I think this is an error from richfaces picklist because the selected items (Right) must be the same object as pick list in the Left

  1. Create 2 lists: Left pick list and Right selected list.
  2. find element in Left pick list and put it into Right selected list.