Is there a way to restore locale for dynamic models when navigating between 
page versions?

Whenever the locale is changed, put it in the session and store it in the page 
too.
Override #getLocale() and return whatever is stored as the page's locale.

Sven


On 11/11/2013 04:24 PM, meduolis wrote:
So, back button does not restore locale value in session?

Ok, I will be more specific:

*action 1.* I click link switchLanguageToEN; (VERSION 1) (both labels (with
static and dynamic models) updates to english);
*action 2.* I click link switchLanguageToDE; (VERSION 2)(... updates to
german);
*action 3.* I click back in browser; (VERSION 1) (label with static model
updates to english, dynamic - stays german).

debug result:
Static model: getSession().getLocale() == en EN (locale restored from
version 1)
Dynamic model: getSession().getLocale() == de DE (locale taken from version
2)

My last question related to this topic (sorry for that spam):

1. Is there a way to restore locale for dynamic models when navigating
between page versions?





--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Back-button-issue-when-localizing-in-stateful-pages-tp4662260p4662323.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