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" />
<rich:extendedDataTable
id="table"
value="#{tableBean.items}" var="item"
style="height:300px; width:300px;">
<rich:column>
<f:facet name="header">
<h:outputText value="Column 1" />
</f:facet>
<h:outputText value="#{item.data1}" />
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="Column 2" />
</f:facet>
<h:outputText value="#{item.data2}" />
</rich:column>
</rich:extendedDataTable>