You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by reikje <re...@matenga.de> on 2008/06/02 09:02:14 UTC

Re: decode() in WebRequestCodingStrategy

>why do you want to add extra params in the RequestParameters? 

The use case is this. The request comes in with a URL like
"/press/article/headline.html". I will take the URL and look up which
Content node this "path" maps to in our CMS. Then I would like to add the id
of this Content node into the RequestParameters for later processing. 



reikje wrote:
> 
> I am trying to implement a custom WebRequestCodingStrategy. In the decode
> methode, I would like to add some custom parameters in the
> RequestParameters object that is returned. I can add whatever I want in
> addBookmarkablePageParameters(..) - perfect. However, all of my parameters
> are completly ignored as WebRequestCodingStrategy.decode will only return
> the parameters that were previously in the Request. Is that supposed to be
> like this? I was expecting that I could add individual parameters in a
> method called addBookmarkablePageParameters.
> 
> I choosed to do that in WebRequestCodingStrategy because I don't want to
> mount anything.
> 

-- 
View this message in context: http://www.nabble.com/decode%28%29-in-WebRequestCodingStrategy-tp17460040p17595176.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: decode() in WebRequestCodingStrategy

Posted by Peter Ertl <pe...@gmx.net>.
Eventually you might be interested in https://issues.apache.org/jira/browse/WICKET-1666

Am 02.06.2008 um 09:02 schrieb reikje:

>
>> why do you want to add extra params in the RequestParameters?
>
> The use case is this. The request comes in with a URL like
> "/press/article/headline.html". I will take the URL and look up which
> Content node this "path" maps to in our CMS. Then I would like to  
> add the id
> of this Content node into the RequestParameters for later processing.
>
>
>
> reikje wrote:
>>
>> I am trying to implement a custom WebRequestCodingStrategy. In the  
>> decode
>> methode, I would like to add some custom parameters in the
>> RequestParameters object that is returned. I can add whatever I  
>> want in
>> addBookmarkablePageParameters(..) - perfect. However, all of my  
>> parameters
>> are completly ignored as WebRequestCodingStrategy.decode will only  
>> return
>> the parameters that were previously in the Request. Is that  
>> supposed to be
>> like this? I was expecting that I could add individual parameters  
>> in a
>> method called addBookmarkablePageParameters.
>>
>> I choosed to do that in WebRequestCodingStrategy because I don't  
>> want to
>> mount anything.
>>
>
> -- 
> View this message in context: http://www.nabble.com/decode%28%29-in-WebRequestCodingStrategy-tp17460040p17595176.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org


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