Once you get to the server via a submit or a link, you're done. The
client side screen is dead and all the server can do is return a new page.
That's simply the way the web works.

        If you want to do navigation within a page via links, you need to
use javascript onClick handlers or render your links as @Any tags with
hard-coded links.

        --- Pat

> -----Original Message-----
> From: Petr Fischer [mailto:[EMAIL PROTECTED]
> Sent: Sunday, November 13, 2005 3:55 PM
> To: Tapestry users
> Subject: Re: how to return HTML anchor from action listener
> 
> Yes, in generated page, I have <a name="myAnchor"> .
> But how to redirect to ResultPage with "#myAnchor" in URL?
> (DirectLink has attribute "anchor", but Submit component has not.)
> 
> Is possible to _redirect_ to completely new URL from "submit" listener
> (with #myAnchor on the end)?
> 
> What is "TSS"?
> 
> I don't understand something, maybe...
> 
> Thanks, pf
> 
> Howard Lewis Ship píše v Ne 13. 11. 2005 v 11:30 -0500:
> > It simply can't be done; that's not something that can be done using
> > HTML.  You have to precompute the anchor when you generate the link on
> > the previous page.
> >
> > You can use some client-side JavaScript; I did this on TSS to
> > accomplish what you want.
> >
> > On 11/13/05, Petr Fischer <[EMAIL PROTECTED]> wrote:
> > > Hi Tapestry users,
> > >
> > > how to return HTML anchor from listener:
> > >
> > >     public String onEditOk() {
> > >         <some db stuff>
> > >         return "ResultPage"; // how to return HTML anchor here???
> > >     }
> > >
> > > May I use IPage?
> > >
> > > Thanks, pf
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Howard M. Lewis Ship
> > Independent J2EE / Open-Source Java Consultant
> > Creator, Jakarta Tapestry
> > Creator, Jakarta HiveMind
> >
> > Professional Tapestry training, mentoring, support
> > and project work.  http://howardlewisship.com
> >
> > ---------------------------------------------------------------------
> > 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]

Reply via email to