aspose file tools*
The moose likes JSF and the fly likes Seam/RichFaces - extendedDataTable, datascroller, and changeable page size Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Seam/RichFaces - extendedDataTable, datascroller, and changeable page size" Watch "Seam/RichFaces - extendedDataTable, datascroller, and changeable page size" New topic
Author

Seam/RichFaces - extendedDataTable, datascroller, and changeable page size

David Hibbs
Ranch Hand

Joined: Dec 19, 2002
Posts: 374
I'm experimenting with SEAM/RichFaces and am working on a data grid page. I've figured out a lot of the basic functionality and really like it!

What I want to be able to do is let the user dynamically change the number of items on the data grid. This seems like it should be easy enough... I just set up my table, the scroller, and then create a session-scoped selection component for picking the page size. In fact, it's so easy that it works... the first time I change the page size. After that, the value gets updated on the object (I can see it in the SEAM debug console) but the datagrid no longer refreshes. Anyone have any input on what may be wrong?

The page size component:


The relevant .xhtml segments:


"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The JavaPerformanceTuning.com team, Newsletter 039.
David Hibbs
Ranch Hand

Joined: Dec 19, 2002
Posts: 374
aha! Figured it out... I just needed to force my page size control to refresh on the ajax server response as well:

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Seam/RichFaces - extendedDataTable, datascroller, and changeable page size