I have ajax dropdown list like this :
<http://apache-wicket.1842946.n4.nabble.com/file/n4676460/dropdown_language.png>
 
where I can change the language of the application :
<http://apache-wicket.1842946.n4.nabble.com/file/n4676460/manage_delegation_switch.png>
 
I use StringResourceModel on class and &lt;wicket:message key='...'&gt; and
wicket:message attribute on tag : everythink work fine.

At this time to switch language I use :

But I have a problem with some composants where some parameters are not
model like for example DateTextField where the patternDate is a string not a
model :

For french this parameter need to be dd/MM/YYYY and for english need to be
MM/dd/YYYY.

To solve this problem I need to recreate the page like this :


I have the same problem with behavior like ConfirmationBehavior (wicket
Bootstrap) where on config you can specify label of button.

To solve this problem I can use the solution above or add the behavior on
onConfigure method and set temporary (but it's not clean but that's work).

So I would like to know what is the best practice (recommendation) for this
use case (switch language) :

create new page : setResponsePage(getPage().class);
or 
re-use page : setResponsePage(getPage());
Thx advance for your reply

Duto

-----
Duto
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Change-language-tp4676460.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]

Reply via email to