Results 1 to 3 of 3

Thread: SWF and DisplayTag select accross pages.

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Location
    Kuala Lumpur, Malaysia
    Posts
    138

    Question SWF and DisplayTag select accross pages.

    hello. I'm using DisplayTag 1.1 and SWF 1.0...
    It works great. Paging/sorting is wonderful.
    however i have a problem.
    when i select the checkbox on item 1, 3 and 5 on page 1
    and then i go to page 2 and click the checkbox on items 30
    then i go back to page 1
    items 1, 3 and 5 are no longer selected.

    the link to the next page does not contain information that i can use
    to store what the user has selected.
    my question is, other that AJAXing the onclick event of the
    checkboxes, is there a way to do it?

    or is there another alternative that doesn't use DisplayTag?
    i mean, i don't HAVE to use DisplayTag.

  2. #2
    Join Date
    Sep 2004
    Location
    Leuven, Belgium
    Posts
    1,853

    Default

    I've never used this feature of displaytag. How does it work in a normal non SWF situation? Why is SWF breaking it?
    Getting insight into questions like this might hint at a work-around.

    Erwin

  3. #3
    Join Date
    Dec 2005
    Location
    Croatia
    Posts
    192

    Default

    Hello,

    Well, this is actually not swf related, but I hope it helps:
    DisplayTag's pagination link is just that - link. When you click on it, it does not submit any data you entered on your form (your checkboxes). If you need the behavior you described, you need to submit form when changing page (either use javascript in your page link, or use submit buttons instead of page links) and perform bind() in your controller (assuming that you have binded your checkboxes to your model properly, of course).

    Regards
    Igor.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •