You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Edward Scanzano <es...@yahoo.com> on 2005/05/15 08:11:58 UTC
programatically generating links
Hi group,
I have a situtation where I am using tapestry
templates to generate XML which is then combined with
an XSL stylesheet for give a final HTML page. What I
would like is to generate a link entirely in java code
and not have to declare a component in the .html page
and then in the .page file. Is this possible?
Thanks
E
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: programatically generating links
Posted by Patrick Casey <pa...@adelphia.net>.
How about something like this:
Object[] parameters = new Object[] { "foo", "bar", new Integer(69)
};
String url = cycle.getEngine().getService(Tapestry.DIRECT_SERVICE)
.getLink(cycle, this,
parameters).getURL();
--- Pat
> -----Original Message-----
> From: Edward Scanzano [mailto:escanzano@yahoo.com]
> Sent: Saturday, May 14, 2005 11:12 PM
> To: tapestry-user
> Subject: programatically generating links
>
> Hi group,
>
> I have a situtation where I am using tapestry
> templates to generate XML which is then combined with
> an XSL stylesheet for give a final HTML page. What I
> would like is to generate a link entirely in java code
> and not have to declare a component in the .html page
> and then in the .page file. Is this possible?
>
> Thanks
> E
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org