The parameters should be in the "urlFromClass" above.

So you could have it like this :

public String getUrlFromClass() {
    return resources.createActionLink("rpcTrigger",false,"jsmith").toString();

}

In my workspace i made a dirty ajax version of actionLink which generates
as  href attribute this :

href="javascript:rpcFunction('yourlink/parameter1/parameter2')"

instead of

href="yourlink/parameter1/parameter2"

So , the parameters should be passed in the same way you do it for
ActionLink component(and  you have 2 options :  use the actionLink component
or build the link in your class as shown above). The only difference is that
there is a javascript function that does the request.

Alex


On 5/8/07, bjornharvold <[EMAIL PROTECTED]> wrote:


Alexandru,

How could you add runtime parameters to this Ajax call? e.g. you want to
call isUsernameAvailable with parameter "jsmith"?

Thanks
bjorn
--
View this message in context:
http://www.nabble.com/Tapestry-5-Mixins-Remoting-JSON-tf3676880.html#a10378474
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Reply via email to