• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

richfaces:datascroller won't display page.

 
Francois Bourgault
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm new to richfaces and I'm having a problem with the datascroller. I use jsf1.2 with richfaces 3.2. I get result on the initial page(5 rows), but when I try to navigate on the 2nd page, everything goes blank. For some reason, the reRender doesn't work. In the console, I can see that scrollerPage = 2 now. Not sure what else I'm missing. Bean scope for systemMessagesBean is session. Even the refresh(f5) won't display that 2nd page. I need to leave the page and get back. Then I'll see the 2nd page. Below is the code in the view section of the jsp page. Also added scrollerPage code in the session bean.

Does anyone know what I may be missing?
Thanks,
Francois



 
Tim Holloway
Saloon Keeper
Pie
Posts: 18226
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is systemMessagesBean.msgList.dataList a JSF DataModel object or is it a simple collection object such as java.util.List?
 
Francois Bourgault
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is a java.util.List
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18226
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Francois Bourgault wrote:it is a java.util.List


Try wrapping it in a ListDataModel. The DataModel classes maintain table context so that you don't have to modify what would otherwise be generic collection objects to contain the extra JSF tracking and support information.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic