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 last 
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:
> new ParameterEncoder(tableId).encode(TableTagParameters.PARAMETER_SORT)).
> 
> tableId being the value of the id attribute on the table tag, or null.
> 
> -David
> 
>   _____  
> 
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of James
> Chrystal
> Sent: Monday, August 29, 2005 3:32 PM
> To: [email protected]
> Subject: [displaytag-user] (no subject)
> 
>  
> 
> I need to maintain the state of the display tag across subsequent, unrelated
> navigation.  When the user returns to the page containing the display tag, I
> want to render the page using the previously used sort order, pagination,
> etc.  I believe I need the id of the display tag to do this.  
> 
>  
> 
> For example, if the param arguments look like this: 
> 
> ?d-1343486-o=2&d-1343486-s=1&d-1343486-p=1
> 
> 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.
> 
>  
> 
> Thanks!
> 
>  
> 
> Jim
<snip>


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to