You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by mogulwraith <mo...@gmail.com> on 2007/09/21 23:19:32 UTC

Request Parameters

>From Javascript I try to build a link something like:

var link = "${requestlink}" + "?firstparam=" + paramA + "&secondparam=" +
paramB;

But when this gets back to the server the only parameter available with
request.getParameter is the first one. How can I accomplish this?

-- 
View this message in context: http://www.nabble.com/Request-Parameters-tf4498661.html#a12830070
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Request Parameters

Posted by Martino Piccinato <ma...@gmail.com>.
It's not clear to me what exactly is your goal if it is, as I think,
dinamically generate a tapestry url inside a javascript you should
then look at one of the IEngineService (depending
on the type of "service" your link will be bound to):

http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/engine/IEngineService.html

in particular the getLink method.

In fact I think there is a lack of documentation in tapestry about how
to properly generate url.

The most common case (action/listener links for forms or not) you
should look at DirectService

http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/engine/DirectService.html

and the Object passed to the getLink method (even though not
documented) should be of type

DirectServiceParameter
(http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/engine/DirectServiceParameter.html)

You can see the types of parameters that can be passed reading
DirectLink component documentation
(http://tapestry.apache.org/tapestry4.1/components/link/directlink.html)


Hope this can be of some help.

Martino


On 9/21/07, mogulwraith <mo...@gmail.com> wrote:
>
> From Javascript I try to build a link something like:
>
> var link = "${requestlink}" + "?firstparam=" + paramA + "&secondparam=" +
> paramB;
>
> But when this gets back to the server the only parameter available with
> request.getParameter is the first one. How can I accomplish this?
>
> --
> View this message in context: http://www.nabble.com/Request-Parameters-tf4498661.html#a12830070
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org