9 Replies Latest reply on Oct 9, 2014 11:49 AM by 893

    ExtendedDataTable component " tableState  " attributes usage

    ganga_1

      Hi,

               I am using the Richfaces 4 M5 's  " ExtendedDataTable " component and i would like to know  " tableState  " attributes usage.

      Using which I can be able to save the Column's order , columns width, and others state related to the "Table" .

       

      Here is my code

       

      proxies.xhtml

      ******************

       

       

                       <rich:extendedDataTable id="proxies" value="#{proxyDataModel}" var="proxyEntity"

                                              sortMode="single"  rows="#{formObject.pageSize}" reRender="datascroller" groupingColumn="proxyPort"

                                              tableState="#{formObject.tableState}">

       

                          .....................

       

                          .....................

       

                       </rich:extendedDataTable>

       

       

      Backing Bean

      ******************

       

      Class formObject

      {

       

         private String tableState;

       

         public String getTableState()

          {

              return tableState;

          }

       

          public void setTableState(String tableState)

          {

              this.tableState = tableState;

          }

       

      }

       

      But, the setter method is not getting invoked at all.

      Could anyone be able to tell what wrong am I doing or something missing here ?

       

      or

       

      can I get a sample code of achiveing the "Saving" the Column width after resizing it .

       

      Thanks in advance.