• 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

Trinidad table page navigation

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
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
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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To give more information, we are using trinidad2.0.1, myfaces2.1 jars, WAS8.5
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic