Hi Martin...
I´ve been using display tag and struts for a long time, and, I can say that  it 
works beautifull, no limitation in any functionality provided by both 
frameworks...
 
I tell you this because if you think something can not be done, may be you are 
wrong...
 
The problem with the checkboxes and the paginated lists is an old problem...
 
When you click on a link to the next or previous page, yo are not submitting 
the information introduced by the user, so it is impossible to "remember" the 
checkboxes "checked" form a page to another.
The best way to do this, is that the user submits his data before changing the 
page, or just do not paginate the list...
These are not solutions, just ways to avoid the problem...
The only solution is that when the user changes the page, the data should be 
sumbited... It is hard to do, because the pagination won`t work...
Another way is that when the user checks a row tha page performs a submit so 
you keep in session scope the rows cheked, the problem is that when the user 
is, for example, at the page number 4, the submit must respond with the page 
number 4, to do that, you will have to build the "page parameters" that display 
tag uses for paginate, manually.... it is possible but very ugly from my point 
of view...
 
 that´s all I can say, wish it  helps you... and if you find another solution, 
please tell me!...
 
Lucas

Martin Kindler <[EMAIL PROTECTED]> escribió:
I have been introduced to the marvels of the displaytag
(http://displaytag.sourceforge.net) by someone from this list and it is
really worthwhile!

Now I am encountering a problem where I need help.

I have a rather large list of items to be shown in a table managed by
displaytag using the automatic paging provided by it.
The table is inside a form and the wanted operation is select some of the
items to store them at submit time in some object.
To select the items I am using the multibox tag.

When I go to another page (using the previous/next links provided by
displaytag) I am losing the information about the selected items in the page
with the link on (as the ActionForm associated with the action is resetted).
Is there an easy way to keep the information until finally the form is
submitted?

Martin

---------------------------------------
cityExperience.net
Dipl. Inf. Martin Kindler
Kaulbachstr. 20a
D-12247 Berlin
Deutschland

eMail [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


                
---------------------------------
 1GB gratis, Antivirus y Antispam
 Correo Yahoo!, el mejor correo web del mundo
 Abrí tu cuenta aquí

Reply via email to