• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

richfaces:datascroller won't display page.

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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



 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it is a java.util.List
 
Tim Holloway
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic