You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Bill Holloway <bi...@gmail.com> on 2007/08/10 00:20:50 UTC
T4: Client urls for listeners?
In a component class, I need to be able to generate a client URL to put into
a JSON object that links to a server-side listener method.
Didn't see this in the wiki or first search in mailing list. Ideas?
Bill
Re: T4: Client urls for listeners?
Posted by Martino Piccinato <ma...@gmail.com>.
You can use DirectService.getLink, an ILink can then return the URL.
But if you need a JSON reply you'll need your class to implement
http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/IJSONRender.html
On 8/10/07, Bill Holloway <bi...@gmail.com> wrote:
> In a component class, I need to be able to generate a client URL to put into
> a JSON object that links to a server-side listener method.
>
> Didn't see this in the wiki or first search in mailing list. Ideas?
>
> Bill
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org