Title: Please help - question regarding pagination

That number is simply = new ParamEncoder(“(tabletag value of id parameter or NULL)”).encodeParameterName(TableTagParameters.PARAMETER_PAGE);

 

-David

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ed Marshall
Sent: Wednesday, July 13, 2005 2:36 PM
To: '[email protected]'
Subject: [displaytag-user] Please help - question regarding pagination

 

Question:
I need to capture the unique number (ie. d-9999-p=99, e.g. d-4955-p=2) that is displayed in the url during mouse-over of page links (First/Prev, etc.).  How can I capture this number? 

Purpose:
I want to be able to display (refresh) my list but return to the same page (not default to page 1).

For example:
In my display:table tag, I use a decorator to create a dynamic link.  Let's say that the user clicks on the column to update the status of an employee record.  I update my list reflecting the new employee status, and then redisplay the list.  The problem is that I want to return to the same page that the user clicked on, not page 1.  I don't want to use the "offset" table attribute since that would eliminate page 1 from the list.

Other relevant info:
I understand how to get the row number from the pageContext (e.g. pageContext.getAttribute("id_rowNum") ... no problem).  From this I could figure out what page number I want to return to.  I just can't figure out how to get the d-9999 number. 

Hope someone can help!

 

Ed Marshall
Programmer at Cherry Electrical Products
[EMAIL PROTECTED]
   

The information contained in this e-mail is confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, copy or use of this e-mail is strictly prohibited. If you have received this e-mail in error, please notify us immediately at the e-mail address above and delete the original message. Thank you.

Reply via email to