I have a table below with 3 cols. NOT using external sort.
When I click on a header to sort, the orderBy property is updated, the table on the screen is re-sorted correctly, but the backbean list "filteredDesignList" is still in the original order when it is loaded. I noticed this issue when click on to invoke "dbAction.addFavorite".
Any idea to make the back bean list be in sync with the list show on the screen?
<rich:dataTable id="mydesigns" rows="10"
var="design" rowKeyVar="rowKey"
value="#{filteredDesignList}" width="100%">
<rich:column id="desCatCol"
sortBy="#{design.reportDesign.categoryTitle}"
sortOrder="#{myWorkspace.designSort.categorySort}">
<f:facet name="header">
<h:outputText value="Category" />
</f:facet>
<h:outputText value="#{design.reportDesign.categoryTitle}" />
</rich:column>
<rich:column id="titleCatCol"
sortBy="#{design.reportDesign.name}"
sortOrder="#{myWorkspace.designSort.titleSort}">
<f:facet name="header">
<h:outputText value="Title" />
</f:facet>
<h:outputText value="#{design.reportDesign.name}" />
</rich:column>
<rich:column width="15px" style="text-align:center">
<f:facet name="header">
<h:outputText value="Favorite" />
</f:facet>
<a4j:commandButton
action="#{dbAction.addFavorite}"
bypassUpdates="true"
title="Add to Favorites"
reRender="mydesigns" >
<a4j:actionparam name="selRow"
assignTo="#{dbAction.activeRow}"
value="#{rowKey}"/>
</a4j:commandButton>
</rich:column>