• 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

Please help, Urgent. !

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have one project on hand, there have some problems when i doing one page, the request is:
list contents along with check box.
One page for 50 records and must support paing.
When i change page, the states of other pages should be remembered.
I have done the paging with list. But can't maintainence the states of all the pages.
Please help.
There are some details:
using DynaValidatorForm (Form Bean), there have two filelds for store the data(List), one store all the data from database and other store the current page data.
But when i click on check box, and submit the form, nothing happen, the data never changed.
Any One Help??
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since the paging is in the request scope, I don't see how you will be able to hold onto the values of the checkbox when going from one page to the next.
My suggestion would be to incorporate your paging into an Action where your call to the next page actually calls an action where you then can read which checkboxes were actually checked and forward the user onto the next set of records.
You wouldn't be able to use a taglib like displaytags for this, but it shouldn't be too hard to implement this sort of paging with remembering.
 
Chen ZhiJiang
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, i'll try it in hard way... ((
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic