You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Doug Lochart <dl...@gmail.com> on 2005/11/04 22:31:07 UTC

help with positional page anchors, please

Is this too easy of a question or has noone ever encountered it before
(I doubt that)
I searched the archives and found 1 thread for it but it was not helpful.

All, ( I am using Tapestry 3.0.3 )

As of now I am NOT using the Redirect-after-Post pattern YET but I may need
to to protect against users hitting the refresh button.
That being said here is my issue:

I have a search page that allows the user to enter in criteria and perform
the search. When a search is performed I go get the data
and populate the bottom of the page with a table (component) of all the
results. In my listener I simply retrieve the data and then return which
will re-render the same page.

I need/want to keep the results and the criteria together on the same page
so that the user will be able to see what they searched for.
The problem is that the results appear below the criteria and off the
viewable portion of the page.

I would like to provide an anchor tag to the area above the results table
and then have the page (when re-rendered) position itself at the results
as if I was using page#section style of anchor link.

How would I do this seeing how I am just returning from a listener?

Any thoughts?

Thanks!



--
What profits a man if he gains the whole world yet loses his soul?