0 Replies Latest reply on Mar 6, 2006 3:34 PM by Ido Tamir

    af:table binding and

    Ido Tamir Newbie

      i am trying to use an af:table with multiple selection. For this I need access to the underlying table.

      When I bind the af:table with binding="#{sampleSelectFlow.organTable}" to my bean via property getter and setter I get an exception if the Scope is not EVENT.

      How do I do this correctly? I tried also @In(required=false) @Out(required=false) but then I got an NPE when trying to access the table (seems like they were not injected)

      thank you very much for your answers

      my bean looks like this:

      public class SampleSelectFlow implements SampleSelect {
       UIXTable organTable;
       private List<Organ> organList;
       private Organ organ;
       private EntityManager em;
       public void loadOrganList(){
       organList = em....
       public void filterOrgan(){
       @Destroy @Remove
       public void remove() {}
       public UIXTable getOrganTable() {
       return organTable;
       public void setOrganTable(UIXTable organTable) {
       this.organTable = organTable;

       <af:table binding="#{sampleSelectFlow.organTable}" emptyText="nothing there" var="organ" value="#{organList}">
       <f:facet name="selection">
       <af:tableSelectMany text="Filter Sample">
       <af:commandButton text="Filter" action="#{sampleSelectFlow.filterOrgan}">
       <!--f:param name="conversationId" value="new"/-->
       <af:column headerText="Organ" sortProperty="organname" sortable="false">
       <af:outputText value="#{organ.organname}" />