Hi,

As Sven explained "2. new Label("contentNoModel",
resolveLocalizedContent());" doesn't use dynamic model (a model that will
re-calculate its object/value on each request). It initializes the value of
the label at construction time and from there on this value doesn't change.
See
https://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models#WorkingwithWicketmodels-DynamicModels


On Mon, Nov 11, 2013 at 10:01 AM, Sven Meier <[email protected]> wrote:

> The back-button brings you back to the previous state of the component
> tree.
>
> If your page is depending on external state (e.g. session or database
> content) for rendering, it will of course show the most recent data
> wherever you have told it so (by using a model).
>
> Regards
> Sven
>
>
> On 11/10/2013 05:44 PM, meduolis wrote:
>
>> Exactly, I am really confused now. As I understand from your answer -
>> this is
>> expected behavior.
>> I thought that back action should behave exactly the same when you
>> navigating the site using wicket controls.
>> Should I override "back" action somehow and do it myself?
>>
>>
>>
>> --
>> View this message in context: http://apache-wicket.1842946.
>> n4.nabble.com/Back-button-issue-when-localizing-in-stateful-pages-
>> tp4662260p4662262.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to