title: How to populate the right side of a richfaces picklist?
body: <p>I am using a Richfaces' <a href="http://livedemo.exadel.com/richfaces-demo/richfaces/pickList.jsf?tab=usage&amp;cid=5212106" rel="noreferrer">picklist</a> and I want to populate the right-side panel with a list of SelectItems from my backing bean.  </p>
  
  <p>Populating the left-side is not a problem from the backing bean, however, the right hand side is problematic.</p>
  
  <p>This is what I currently have</p>
  
  <pre><code>&lt;h:outputText value="Roles" /&gt;
  &lt;rich:pickList showButtonsLabel="false"&gt;
      &lt;f:selectItems value="#{Bean.allRoles}" /&gt;
  &lt;/rich:pickList&gt;
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p>So I have roles 'a', 'b', 'c', and 'd'.  </p>
  
  <p>The user has roles 'a' and 'd', so 'a' and 'd' should be on the right-side panel and 'b' and 'c' should be on the left-side panel.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Further explanation.</p>
  
  <p>I have three lists for the user. </p>
  
  <ol>
  <li>All posible roles (a thru d)</li>
  <li>All roles the user is part of (a and d)</li>
  <li>All roles the user is NOT part of (b and c)</li>
  </ol>
  
  <p>All lists have the data type <code>ArrayList&lt;SelectItem&gt;</code>.</p>
  
  <p>I need the capability to move individual roles between list number 1 and list number 2 and then save the new set of roles.  I thought the picklist would be the best richfaces object for the job. </p>