Have you looked at the source code for the getLink 
method in 
org.apache.tapestry.link.ExternalLink ?

Copying the code from the method 
ExternalLink.getLink, I would have thought
you need something like the following.

  // parameters as in  the attribute parameters in
ExternalLink component
   Object[] serviceParameters =
DirectLink.constructServiceParameters(getParameters());

        ExternalServiceParameter esp = new
ExternalServiceParameter(getTargetPage(),
                serviceParameters);

        ILink link = 
getExternalService().getLink(false, esp);

Shing

--- KE Gan <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> Apology if I am repeating here ... So anyone know
> how to return an ILink
> with a html anchor (#) from a listener in Java class
> (using the
> ExternalService object) ?
> 
> Thanks, appreciate if anyone can give some pointers.
> 
> 
> On 6/27/06, KE Gan <[EMAIL PROTECTED]> wrote:
> >
> >  Hi,
> >
> > How do you return an ILink with a html anchor (#)
> from a listener in Java
> > class ?
> >
> > To elaborate, I have a Java class that listen to a
> Tapestry "Submit"
> > component. In the listener I am returning an ILink
> using ExternalService and
> > ExternalServiceParameter (post-redirect-get). My
> question is, how do I
> > return a link with an html anchor (#) ?
> >
> > I know this could be done using ExternalLink in
> the page specification
> > (.page), but how to do it from a Java class ?
> >
> > I have tried Googling but couldn't find any useful
> info.
> >
> > ~KEGan
> >
> 

Home page :
  http://uk.geocities.com/matmsh/index.html


                
___________________________________________________________ 
Copy addresses and emails from any email account to Yahoo! Mail - quick, easy 
and free. http://uk.docs.yahoo.com/trueswitch2.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to