title: rich:extendedDataTable selectionItems "not stored"
body: <p>I'm trying to use an extendedDataTable, here is some piece of the code, the xhtml part:</p>
  
  <pre><code>&lt;h:form&gt;
               &lt;rich:extendedDataTable id="network_table" value="#{NetworkBean.availableNetworkList()}" var="network" selection="#{NetworkBean.selection}" selectionMode="single" &gt;
                    &lt;a4j:ajax execute="@form" event="selectionchange" listener="#{NetworkBean.selectionListener}"/&gt;
  
  
  
                &lt;rich:column&gt;
                                   &lt;f:facet name="header"&gt;Available Networks&lt;/f:facet&gt;
                                   &lt;h:outputText value="#{network}"/&gt;
               &lt;/rich:column&gt;    
           &lt;/rich:extendedDataTable&gt;
           &lt;a4j:commandButton value="1" action="#{NetworkBean.availableMssList()}"&gt;
  
           &lt;/a4j:commandButton &gt;
         &lt;/h:form&gt; 
  </code></pre>
  
  <p>and some part of the backing bean:</p>
  
  <pre><code> private Collection&lt;Object&gt; selection;
   private List&lt;String&gt; selectionItems = new ArrayList&lt;String&gt;();
   public void selectionListener(AjaxBehaviorEvent event) {
          UIExtendedDataTable dataTable = (UIExtendedDataTable) event.getComponent();
          Object originalKey = dataTable.getRowKey();
          selectionItems.clear();
          for (Object selectionKey : selection) {
              dataTable.setRowKey(selectionKey);
              if (dataTable.isRowAvailable()) {
                  System.out.print((String) dataTable.getRowData());
                  selectionItems.add((String) dataTable.getRowData());
                  System.out.print(selectionItems);
              }
          }
          dataTable.setRowKey(originalKey);
      }
  
  
  
  public Collection&lt;Object&gt; getSelection() {
          return selection;
      }
  /**
   * @param selection the selection to set
   */
  public void setSelection(Collection&lt;Object&gt; selection) {
      this.selection = selection;
  }
  
  /**
   * @return the selectionItems
   */
  
  public String getSelectionItem() {
      if (selectionItems == null || selectionItems.isEmpty()) {
          return null;
      }
      return selectionItems.get(0);
  }
  
  public List&lt;String&gt; getSelectionItems() {
      return selectionItems;
  }
  
  /**
   * @param selectionItems the selectionItems to set
   */
  public void setSelectionItems(List&lt;String&gt; selectionItems) {
      this.selectionItems = selectionItems;
  }
  
  public void availableMssList(){
  System.out.print("hithere");
      System.out.println(selectionItems);
  
  }
  </code></pre>
  
  <p>SO my problem is with the selectionItems, if i click on a row it works fine and prints me the selected row to the console(two printout in the Listener). But when i try to use the method availableMssList with the a4j commandbutton the selectionItems seems to be empty. What could be the problem?</p>
  
  <p>Thanks for the help!</p>