Hi,
I want to preserve the dataModel / table rows when I scroll through the datatable, but I want to refresh / reload the data when I navigate to this page from some other page.
I tried <a4j:keepAlive beanName="logLoadController" ajaxOnly="true"/>
, but it does not preserve the bean when i scroll through the dataScroller.
I am using richfaces 3.1.4 GA
<rich:dataTable id="logTable" rows="10"
value="#{logLoadController.allLogs}" var="row" rowKeyVar="index"
binding="#{logLoadController.htmlDataTable}">
<rich:column>
<h:selectBooleanCheckbox value="#{row.selected}">
</h:selectBooleanCheckbox>
</rich:column>
... other columns
</rich:dataTable>
<rich:datascroller id="logDatascroller" align="left"
for="logTable" ajaxSingle="false"/>
faces-config.xml
<managed-bean>
<managed-bean-name>logLoadController</managed-bean-name>
<managed-bean-class>
LogLoadController
</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>logLoadDao</property-name>
<value>#{logLoadDao}</value>
</managed-property>
At first using keepAlived bean in binding - even worse that use just session scoped bean and could cause any unpredictable glitches. binding property should be request scoped.