IRequestParameters interface has PageParameters correspondent API to access
page parameters. Can be accessed like:
RequestCycle.get().getRequest().getQueryParameters()

If you want to recreate page parameters for some request, you can use the
PageParametersEncoder.


On Mon, Apr 11, 2011 at 12:06 PM, Serban Balamaci <serban.balam...@asf.ro>wrote:

> Hello everybody, I''m in the process of migrating an app from 1.4 to
> 1.5-RC3
>
> I see that the PageParameters and IRequestParameters are pretty separate
> things now. Any reason why it's done this way and why they not extend a
> Common Interface that exposes methods like getParameterNames
> getParameterValue.
>
> Because I  have this usecase: I try to keep a stateless page by heavily
> encoding state in the pageParameters, so on different actions I'm resending
> parameters that I initially received on this page.
> In 1.4 there was no difference in handling parameters that came from
> constructor WebPage(final PageParameters parameters) and those that were
> received in the request( RequestCycle.get().getPageParameters()) and there
> was very easy to reuse the same parameters received in the request - clone
>
> Is it an easy method to create PageParameters from IRequestParameters(which
> I get from RequestCycle.get().getRequest().getRequestParameters()), or
> iterating and adding them to PageParameters is the way to go?
>
> Thank you.
>
> -----
> http://balamaci.wordpress.com
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-PageParameters-vs-IRequestParameters-question-tp3442239p3442239.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos

Reply via email to