5 Replies Latest reply on Jul 11, 2009 9:22 AM by Antony Antony

    ExtendedDataModel and simple bean

    Antony Antony Newbie

      Hi

      I tried to use ExtendedDatamodel to keep my model during postback operations, so I can work with my collections for a datatable etc...

      How can I do to use this extendedDataModel with a classical bean.

      <rich:dataTable id="tableEstablishment" value="#{model}" var="establishments" rows="10">
      
      <rich:column>
      <f:facet name="header"><h:outputText value="Action" /></f:facet>
      <a4j:commandButton value="d" action="#{model.test}" reRender="tableEstablishment" />
      </rich:column>
      </rich:dataTable>


      When I click on my button I can't reach my "test" method in my model class.

      I Think I must use another bean. My question , is it possible to handle the extendedDataModel and actions methods in the same class ?
      If not, where I must implement my actions methods ?

      thanks