4 Replies Latest reply on Feb 25, 2009 12:30 AM by Firas Abah

    Using the rich:extendedDataTable selection attribute

    Firas Abah Newbie

      Dear all,

      I am trying to use the rich:extendedDataTable component from richfaces 3.3.0 as follows:

      <rich:extendedDataTable value="#{Employees.list}" var="employee" selectionMode="single" selection="#{Employees.selection}" width="520" height="150" >

      I have defined the 'selection' bean property as follows:

      private org.richfaces.model.selection.SimpleSelection selection;

      When the user picks a row from the datatable and click a submit button like this:

      <h:commandButton value="Edit" action="#{Employees.edit}" />

      the method bound need to get the selected employee object using the 'selection' property. How can this be done in the managed bean?