You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Donny Nadolny <do...@gmail.com> on 2010/12/22 01:19:31 UTC
Get URL for a page that has @ActivationRequestParameter
I have a page that has a couple of ActivationRequestParameters, as
well as an activation context. How can I generate a link for this
page? It's a page that generates an RSS feed, so I need to include the
URL in a <link rel="alternate" type="application/rss+xml"
href="${rssURL}"/>
Previously it only had an activation context, so I could generate it
with pageRenderLinkSource.createPageRenderLinkWithContext(RSS.class,
context).toURI(), but I'm not sure to do it now that it includes an
ActivationRequestParameter.
Thanks,
Donny
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Get URL for a page that has @ActivationRequestParameter
Posted by Christian Riedel <cr...@googlemail.com>.
I just had a look at the new annotation. There's no possibility to use <t:pageLink page="index" /> and pass these request parameters, right? What about a new parameter like this:
<t:pageLink page="index" parameters="prop:parameterMap" />
public Map<String, String getParameterMap() ...
Am 22.12.2010 um 01:23 schrieb Igor Drobiazko:
> Just invoke addParameter(String,String) method on the created link.
>
> On Wed, Dec 22, 2010 at 1:19 AM, Donny Nadolny <do...@gmail.com>wrote:
>
>> I have a page that has a couple of ActivationRequestParameters, as
>> well as an activation context. How can I generate a link for this
>> page? It's a page that generates an RSS feed, so I need to include the
>> URL in a <link rel="alternate" type="application/rss+xml"
>> href="${rssURL}"/>
>>
>> Previously it only had an activation context, so I could generate it
>> with pageRenderLinkSource.createPageRenderLinkWithContext(RSS.class,
>> context).toURI(), but I'm not sure to do it now that it includes an
>> ActivationRequestParameter.
>>
>> Thanks,
>> Donny
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
> --
> Best regards,
>
> Igor Drobiazko
> http://tapestry5.de
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Get URL for a page that has @ActivationRequestParameter
Posted by Igor Drobiazko <ig...@gmail.com>.
Just invoke addParameter(String,String) method on the created link.
On Wed, Dec 22, 2010 at 1:19 AM, Donny Nadolny <do...@gmail.com>wrote:
> I have a page that has a couple of ActivationRequestParameters, as
> well as an activation context. How can I generate a link for this
> page? It's a page that generates an RSS feed, so I need to include the
> URL in a <link rel="alternate" type="application/rss+xml"
> href="${rssURL}"/>
>
> Previously it only had an activation context, so I could generate it
> with pageRenderLinkSource.createPageRenderLinkWithContext(RSS.class,
> context).toURI(), but I'm not sure to do it now that it includes an
> ActivationRequestParameter.
>
> Thanks,
> Donny
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
--
Best regards,
Igor Drobiazko
http://tapestry5.de