The main means I can think of is to store the user pref in a cookie, then
create a servlet filter to extract that as the user makes requests. You
could then set it as a session attribute and access it in the defaultsort
with a scriptlet.
As for any inherent capability in displaytag for using that sort of
information, or extending displaytag to use it, I don't think that there's
anything there. That would be a really cool enhancement though.
Scott Russell said:
> I too am looking at how I can save sort state, but thinking a little
> longer term. Like
> across sessions via some sort of user data safe store.
> Anyway, I was assuming the simplest way would be to save the value of the
> sort action and then specify it as the value for the defaultsort
> parameter. However,
> I don't see a way to hook into the sorting like some sort of listener or
> what have you.
> Am I off base here or is there an easier way? Thanks in advance.
> On Monday 29 August 2005 06:19 pm, David Erickson wrote:
>> tableId being the value of the id attribute on the table tag, or null.
>> From: displaytag-user-admin@...
>> [mailto:displaytag-user-admin@...] On Behalf Of James
>> Sent: Monday, August 29, 2005 3:32 PM
>> To: displaytag-user@...
>> Subject: [displaytag-user] (no subject)
>> I need to maintain the state of the display tag across subsequent,
>> navigation. When the user returns to the page containing the display
>> tag, I
>> want to render the page using the previously used sort order,
>> etc. I believe I need the id of the display tag to do this.
>> For example, if the param arguments look like this:
>> How do I arrive at the generated 1343486 value?
>> I've searched the user archives, and I didn't see the information I was
>> looking for.
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> displaytag-user mailing list
I haven't got time for inner peace.
Get out of control, but appear under control. It's not bad to alarm other
people, though--it's good for them.--Hunter S. Thompson