Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Trinidad table page navigation  RSS feed

 
pavankumar Adibhatla
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
We are using trinidad tag library with jsf 20. We are using tr:table and rows="25" and managedbean is in ViewScoped . There are more than 100 records, even though we navigate away from the current and come back or relogin the table pagination is remianing in the previous state. Can someone let me know how to reset it.
Thanks n advance.

Regards,
pavan
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Pavan!

This sound rather odd. Once you navigate to a new View, a ViewScoped backing bean is destroyed. Returning to that View should cause a new bean to be created and new state information to be constructed.

Could you list the essential parts of the table and backing bean?
 
pavankumar Adibhatla
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi thanks for the quick reply.
All other values are being reset.
Even i tried to get the handle in the bean with getviewroot.findcpmponent api and did addpartial target from server and setFirst(0) but no luck

<tr:table verticalGridVisible="0" horizontalGridVisible="0" width="100%" value="#{testBean.sampleList}" var="sample" rowBandingInterval="1" rows="25" height="100px" id="team" first="0" >

ManagedBean has nothing new, except for settin values to the list and @ViewScoped and @Managedbean annotation.

Regards,
Pavan
 
pavankumar Adibhatla
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To give more information, we are using trinidad2.0.1, myfaces2.1 jars, WAS8.5
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!