You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Edgar Merino <do...@gmail.com> on 2014/05/21 20:41:48 UTC

PageParameters refresh on page reload

Hello, I've got a problem that I've just noticed today: When an instance 
of a WebPage is created with some url parameters, the PageParameters 
object is never updated, that is, if I refresh the same webpage with 
different url parameters this won't be taken into account, instead the 
first params used to create the WebPage are used. Is there a way to have 
url parameters updated on each page request?

Thanks in advance.

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


Re: PageParameters refresh on page reload

Posted by Edgar Merino <do...@gmail.com>.
Thanks for the response Martin, good to know this is fixed in v7 (and 
the workaround for v6).


On 21/05/14 14:08, Martin Grigorov wrote:
> Hi,
>
> This is fixed in Wicket 7.x. We didn't apply the fix to 6.x because it is a
> behavior change.
> You can read the current parameters in #onConfigure() with
> getRequestCycle().getRequest().getRequestParameters() and override with
> them the page's parameters (page.getPageParameters())
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Wed, May 21, 2014 at 9:41 PM, Edgar Merino <do...@gmail.com> wrote:
>
>> Hello, I've got a problem that I've just noticed today: When an instance
>> of a WebPage is created with some url parameters, the PageParameters object
>> is never updated, that is, if I refresh the same webpage with different url
>> parameters this won't be taken into account, instead the first params used
>> to create the WebPage are used. Is there a way to have url parameters
>> updated on each page request?
>>
>> Thanks in advance.
>>
>> ---------------------------------------------------------------------
>> 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


Re: PageParameters refresh on page reload

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

This is fixed in Wicket 7.x. We didn't apply the fix to 6.x because it is a
behavior change.
You can read the current parameters in #onConfigure() with
getRequestCycle().getRequest().getRequestParameters() and override with
them the page's parameters (page.getPageParameters())

Martin Grigorov
Wicket Training and Consulting


On Wed, May 21, 2014 at 9:41 PM, Edgar Merino <do...@gmail.com> wrote:

> Hello, I've got a problem that I've just noticed today: When an instance
> of a WebPage is created with some url parameters, the PageParameters object
> is never updated, that is, if I refresh the same webpage with different url
> parameters this won't be taken into account, instead the first params used
> to create the WebPage are used. Is there a way to have url parameters
> updated on each page request?
>
> Thanks in advance.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>