Hi Andy,
That works for me!
Thanks,
Danny
andyhot wrote:
Danny Mandel wrote:
Hi,
Thanks Jesse. My use case was within a form listener method, so as
far as I could tell, there was no anchor parameter to be bound.
Reading the other messages in this thread I think the
cycle.activate(String pageName, String anchor) would work or the idea
of returning an "Anchor" object of some sort from a listener method
would work, too.
Returning an ILink was my first thought, but I didn't see an easy way
to pass an anchor to an ILink when it was constructed.
What is the current supported way to render a page from a form
listener method to a specific anchor?
When a listener return an ILink, Tapestry does a
cycle.sendRedirect(link.getAbsoluteURL())
I was thinking of an ILink decorator, so that your listener would do:
return new AnchorDecorator( previousLink, "anchor")
AnchorDecorator would delegate all methods to the enclosed ILink, all
apart from getAbsoluteURL()
This would become:
public String getAbsoluteURL() {
return getAbsoluteURL(null, null, 0, _anchor, true);
}
Anyhow, many thanks to you and Andy for your consideration of this
matter. It doesn't seem to be of the utmost importance, but it is a
bit of a rough edge in my mind.
Danny
Jesse Kuhnert wrote:
There are ways to do this in Tapestry 4, but it seems non-intuitive
enough
already that it should probable be fixed.
What do you think would feel most "convenient" for you?
On 8/21/06, Danny Mandel <[EMAIL PROTECTED]> wrote:
Hi all,
I know that it wasn't possible (through the framework) in Tapestry 3 to
return a specific page at a specific anchor from a listener method. Is
this now possible in Tapestry 4? If not, does anyone have any
suggestions for working around this? I've written some javascript to
refresh the page location in the onload method, but it's unreliable.
Thanks for any suggestions,
Danny
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]