Urgh, I hate mailing lists on sourceforge...  I guess you get what you pay
for :^)

Here's why you don't want to do what you THINK you want to do.  Let's say
you've got 10 pages of data.  On the first page, you select a couple of
checkboxes.  Now you go to the next page and select a couple more.  Then
the next and more.  And then you get to page 8 or 9 and... which ones did
you select before?  You could page all the way back and look at the
checkboxes, but that's extremely unfriendly.  You have to do the same
thing if you want to remove a couple of the items on the first page,
second page, third page.

Basically, once you're off a page, there's no way to tell what you added
from that page or to manage your selected items overall without going back
to each page.

Instead what you want is an accumulator.  This is a box that you can add
items to and remove items from as you're paging through your tables.  So
page one, select a couple of items, click the Add button, and they get put
in the list over on the right.  Go to the next page.  You see your next
page of data to the left and your selected items from the first page on
the right.  Add some more from the second page, go onto the third, fourth
and so on.  Now you're at the end and you decide you've got too many items
selected.  You can see all of your selected items in one view and remove
any unwanted right there by selecting them in the accumulator and clicking
remove or delete or whatever.  No need to go back through every page of
your list.

Oh, look, here's another version of that e-mail.  This one even has little
figures and drawings and stuff in it!

http://sourceforge.net/mailarchive/message.php?msg_id=10889106

That's how you should do it.  IMO, of course.

Martin Kindler wrote:
> Hi Rick,
>
> as you are so involved in this topic, i'ld like to see your arguments.
> I do have the same problem as Ramki, but would like to see the pitfalls of
> an implementation before investing too much.
> Searching the archives leads me to several links (provided by you) to
> http://sourceforge.net/mailarchive/message.php?msg_id=11466820 , but there
> the message does not exist anymore.
> Could you repost that message or do you have another archive where to find
> it?
>
> Martin
>
>> -----Ursprüngliche Nachricht-----
>> Von: Rick Herrick [mailto:[EMAIL PROTECTED]
>> Gesendet: Dienstag, 16. Mai 2006 18:59
>> An: [EMAIL PROTECTED]; [email protected]
>> Betreff: Re: [displaytag-user] [displaytag - Help] Checkbox
>> in pagination
>>
>>
>>
>> Martin Kindler wrote:
>> > If you search the archives you will find some dispute whether it is
>> > good practice to allow selection over several pages or not.
>>
>> As one of the main people who disputes that :^), it's not a
>> matter of allowing the selection over several pages, it's HOW
>> you do it.  Yes, please, search through the archives to find
>> these discussions.
>>
>> > Anyway, if you belong to that half of mankind who thinks it is
>> > necessary (I can imagine situations where I share that
>> view), you have
>> > to do the bookkeeping yourself as far as I know.
>>
>> I absolutely agree that there are plenty of times that it
>> needs to be done, just not in the way described.  Again, find
>> the archived discussions.  I explain precisely why the means
>> of doing this that Ramki is problematic and the standard way
>> of handling this sort of interface.
>> This stuff isn't just my opinion: you won't find any
>> professionally released interface (and I'm not limiting this
>> to Web clients, but including fat clients, desktop apps,
>> etc.) anywhere that does it the way described, but instead
>> will find them all doing the way I've described.
>>
>> OK, and all that said... yes, you have to manage this all yourself.
>> displaytag includes no direct facility for handling control
>> values within the tables.  It DOES provide everything you
>> need to do this yourself (i.e. access to the data for each row).
>>
>> >> -----Ursprüngliche Nachricht-----
>> >> Von: [EMAIL PROTECTED]
>> >> [mailto:[EMAIL PROTECTED] Im
>> Auftrag von
>> >> SourceForge.net
>> >> Gesendet: Freitag, 12. Mai 2006 06:29
>> >> An: [EMAIL PROTECTED]
>> >> Betreff: [displaytag-user] [displaytag - Help] Checkbox in
>> pagination
>> >>
>> >> Read and respond to this message at:
>> >> https://sourceforge.net/forum/message.php?msg_id=3725252
>> >> By: srinuram
>> >>
>> >> I'm using display tag for displaying data and have
>> checkboxes as one
>> >> of the column. when the user selects a couple of check
>> boxes and then
>> >> clicks any of the page links (Pagination
>> >> links: for ex: next five, prev five or any link number
>> like 2or 3),
>> >> then also the checked value has to be retained if the user
>> comes back
>> >> to the screen. This is required as the user may select
>> check boxes in
>> >> different pages and then later submits the data.
>> >>
>> >> Can anyone help me out.
>> >>
>> >> Thanks.
>> >> Ramki
>> >>
>> >>
>> _____________________________________________________________________
>> >> _
>> >> You are receiving this email because you elected to monitor
>> >> this forum. To stop monitoring this forum, login to
>> >> SourceForge.net and visit:
>> >> https://sourceforge.net/forum/unmonitor.php?forum_id=249318
>> >>
>> >>
>> >> -------------------------------------------------------
>> >> Using Tomcat but need to do more? Need to support web services,
>> >> security? Get stuff done quickly with pre-integrated technology to
>> >> make your job easier Download IBM WebSphere Application Server
>> >> v.1.0.1 based on Apache Geronimo
>> >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&;
>> > dat=121642
>> > _______________________________________________
>> > displaytag-user mailing list [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/displaytag-user
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > displaytag-user mailing list [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/displaytag-user
>> >
>>
>>
>> --
>> Rick Herrick
>> [EMAIL PROTECTED]
>>
>> I haven't got time for inner peace.
>>
>> "No reasonable definition of reality could be expected to
>> permit this."--Albert Einstein, Boris Podolsky and Nathan
>> Rosen in 1935
>>
>>
>
>
>
>
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>


-- 
Rick Herrick
[EMAIL PROTECTED]

I haven't got time for inner peace.

"No reasonable definition of reality could be expected to permit
this."--Albert Einstein, Boris Podolsky and Nathan Rosen in 1935



_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to