Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
David Hibbs
Ranch Hand
Posts: 374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
David Hibbs
Ranch Hand
Posts: 374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
aha! Figured it out... I just needed to force my page size control to refresh on the ajax server response as well:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic