Thursday, 10 September 2009

No response to rich:datascroller in rich:datatable

Sometimes the rich:datascroller doesn't seem to work correctly, particularly when also using filtering and/or sorting. The underlying view seems to be updated correctly, but the table is not re-rendered.

I've found that it can be kicked back into life using a4j:support:

<f:facet name="footer">
 <rich:datascroller renderIfSinglePage="false">
  <a4j:support event="oncomplete" reRender="dtUsers"/>
 </rich:datascroller>
</f:facet>


Where dtUsers is my table id.

Problems can also occur if the data source object has too short a persistence, the source should have Session scope.

No comments:

Post a Comment

About Me

My photo
Blog to record technical tips regarding web application development using JSF, NetBeans, MySQL and RichFaces.

Search This Blog