title: Primefaces picklist target value to populate a separate datatable
body: <p>Excuse me for posting here and not on the primeFaces forum, but I can't seem to register on their forums (I never get the confirmation email EDIT: note to self: always check the spambox).  I'm using primefaces 2.2RC.  I have a wizard component embedded in a tabbed window component.  The workflow wizard asks the user to pick a material from a .  I want the outcome of that picklist (picklist.target) to populate a .  I see that there is now an onTransfer attribute on picklist but no documentation on how to use it.<br>
  The code works and populates the picklist and I can pick strings and advance to the next tab.  I just can't get the updated(?) materials.target list.
  Can anyone give a clue?</p>
  
  <p>My code below:</p>
  
  <pre><code>&lt;p:tab id="Step3" title="Pick materials"&gt;
    &lt;p:panel header="Step 3" &gt;
     &lt;p:pickList value="#{materialPickListBean.materials}" var="mat"
      itemLabel="#{mat}" itemValue="#{mat}" converter="matConverter" onTransfer=""&gt;
      &lt;f:facet name="sourceCaption"&gt;Available&lt;/f:facet&gt;
      &lt;f:facet name="targetCaption"&gt;Picked&lt;/f:facet&gt;
     &lt;/p:pickList&gt;
  
    &lt;/p:panel&gt;
   &lt;/p:tab&gt;
   &lt;p:tab id="Step4" title="Adjust material quantites"&gt;
    &lt;p:panel header="Step 4"&gt;
     &lt;p:dataTable value="#{materialBean.materialList}" var="matList"
      dynamic="true" id="pickedMaterials"&gt;
      &lt;f:facet name="header"&gt;Select material quantities&lt;/f:facet&gt;
      &lt;p:column&gt;
       &lt;f:facet name="header"&gt;
        &lt;h:outputText value="Material description" /&gt;
       &lt;/f:facet&gt;
       &lt;h:outputText value="#{matList.name}" /&gt;
      &lt;/p:column&gt;
      &lt;p:column&gt;
       &lt;f:facet name="header"&gt;
        &lt;h:outputText value="unit type" /&gt;
       &lt;/f:facet&gt;
       &lt;h:outputText value="#{matList.unitOfMeasurement}" /&gt;
      &lt;/p:column&gt;
      &lt;p:column&gt;
       &lt;f:facet name="header"&gt;
        &lt;h:outputText value="units" /&gt;
       &lt;/f:facet&gt;
       &lt;h:inputText value="#{matList.quantity}" /&gt;
      &lt;/p:column&gt;
     &lt;/p:dataTable&gt;
     &lt;p:commandButton value="Submit" actionListener="#{jobCardWizard.save}"/&gt;
    &lt;/p:panel&gt;
   &lt;/p:tab&gt;
  </code></pre>
  
  <p>bean:</p>
  
  <pre><code>public void init() {
  loginEJB.setupMockMaterial();
  source = new ArrayList&lt;String&gt;();
  target = new ArrayList&lt;String&gt;();
  populateSource();
  materials = new DualListModel&lt;String&gt;(source, target);
  }
  
  private void populateSource() {
  List&lt;Material&gt; materialList = materialEJB.findMaterials();
  for (Material m : materialList) {
  source.add(m.getName());
  }
  }
  </code></pre>