Just added to the FAQ:

https://cwiki.apache.org/confluence/display/TAPESTRY/Frequently+Asked+Questions#FrequentlyAskedQuestions-HowdoIaddqueryparametersaPageLinkorActionLink%3F


On Thu, Aug 19, 2010 at 3:44 AM, Davor Hrg <hrgda...@gmail.com> wrote:
> I'm posting this to user group since it is mostly usage question.
>
> The new query parameter binding is a welcome addition, especialy in
> combination
> with replacing the page pool with static instaces. All nice and well, but
> how do I pass
> query parameters through PageLink or AcionLink ?
>
> Best to explain it through the example I'm using it with:
> There is a page that lists documents, and there is a search form with few
> fields.
> One field is the "year" which tells the page to limit to docs from that
> year.
> So I changed the @Persist to @ActivationRequestParameter and after
> submitting
> the search form I get a nice ur: docs/list?year=2009.
> Ok, this works well, I can have multiple tabs with different filters, much
> like php which I
> like very much and use often.
> but there are more things that do not work:
> 1. using PageLink from another page to jump to @ActivationRequestParameter
> 2. using ActionLink to pass query parameters (annotated with
> @RequestParameter)
>
> 3. If there are more than one such param there is no way to create a link to
> it self with one of them changed
>   for example on page: docs/list?year=2009&type=FI I can not create a link
> directly to docs/list?year=2010&type=FI
>   it would be nice to be able to write this: <t:SelfLink
> q:year="2010">2010</...> to get the mentioned result
>
> for that matter a namespace xmln:p="tapestry:parameter" or new one like
> xmlns:q="tapestry:query" would be nice
> for the ActionLink and PageLink.
>
>
> Davor Hrg
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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

Reply via email to