Hi,

I have a struts based application and want to integrate displaytag. Mainly, I'm in for sorting and paging. It realy does a great job in displaying tables. I read all the axamples that I could put my hands on (including http://displaytag.homeip.net/index.jsp), but I was not able to understand how to make it work on/with forms. Let's suppose I have a search form with user input fields on the top of the page and displaytag below to show search results. Up to here all fine. I can submit the form, populate beans and show them in the displaytag.

The problems start when I try to sort (or use paging for that metter). I can either have a link to the jsp or submit a struts url (action). In either case the form data is not submitted and all my user input is lost.

As I understand it, I would have to keep all my ActionBeans in the session scope to preserve it between "sort/paging" requests. Since it seems a good idea to keep ActionForms at request scope (less memory, no need to reset .......), I would preffer to keep only table data in session and have sorting/paging requests submitt the entire form. What I would realy want is to have the possibility to have a JavaScript function on click on sorting/paging links
es.
<a onClick="callSomething(d-49653, 1, 2, 0);">CITY</a>
instead of
<a href="/example-pse.jsp?d-49653-p=1&amp;d-49653-o=2&amp;d-49653-s=0">CITY</a></th>


Any ideas/suggestions/samples ?

A. Smiljanic



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to