0 Replies Latest reply: Apr 3, 2012 3:59 PM by Nick Dev RSS

    Bug in rich:extendedDataTable - column width lost after table rerendering (partial state saving)

    Nick Dev Newbie

      Bug in rich:extendedDataTable - column width lost after table rerendering.

      Steps to reproduce:

      1) Resize a column

      2) Rerender table 2 times.

      Column will take initial width.


      JSF Mojarra 2.1.7

      RichFaces 4.3.0-SNAPSHOT


      Column order does not have this issue. And no issue when disabling partial state saving (javax.faces.PARTIAL_STATE_SAVING).


      Submitted issue https://issues.jboss.org/browse/RF-12135


      In ExtendedDataTableRenderer#doDecode I see that on resize column component attribute updated while table component attribute updated on column reorder.

      Have custom table component based on rich:extendedDataTable (can modify the code).

      Is easy fix available?


      Code to reproduce:


      <a4j:commandLink render="table" value="render" />



          value="#{tableBean.items}" var="item"

          style="height:300px; width:300px;">


                 <f:facet name="header">

                     <h:outputText value="Column 1" />


              <h:outputText value="#{item.data1}" />



                 <f:facet name="header">

                     <h:outputText value="Column 2" />


              <h:outputText value="#{item.data2}" />