Another beginner localization question

2010-04-19 Thread Alexandros Karypidis
Hi, I'm using a wicket:message tags, property files and a ChoiceRenderer to allow users to switch the Locale. My ChoiceRenderer overrides wantOnSelectionChangedNotifications() to have the browser send a Locale change event to the server and when this call returns, all wicket:message content

Re: Another beginner localization question

2010-04-19 Thread Pedro Santos
Your ChoiceRenderer can implement IHeaderContributor and add your javascript to IHeaderResponse object, since when the user change the value on the selection component, the page will to be re-rendered On Mon, Apr 19, 2010 at 4:54 PM, Alexandros Karypidis akary...@yahoo.grwrote: Hi, I'm using

Re: Another beginner localization question

2010-04-19 Thread Alexandros Karypidis
Aha! ...the joys of learning Wicket! :-) On 19/4/2010 10:58 μμ, Pedro Santos wrote: Your ChoiceRenderer can implement IHeaderContributor and add your javascript to IHeaderResponse object, since when the user change the value on the selection component, the page will to be re-rendered On Mon,

Beginner localization question

2010-04-13 Thread Alexandros Karypidis
Hi, How can I have Wicket resolve a key to some localized messages with my own code at runtime? The reason I ask is because I have this use case: 1) I use Java enumerations to strongly-type a RadioChoice control: public enum RadioOptions { ONE, TWO, THREE } 2) I strongly-type a RadioChoice

Re: Beginner localization question

2010-04-13 Thread Igor Vaynberg
if you have a component/page you can use component.getstring() if not you can get the localizer from application and use that, afaik application.get().getresourcesettings().getlocalizer() -igor On Tue, Apr 13, 2010 at 9:33 AM, Alexandros Karypidis akary...@yahoo.gr wrote: Hi, How can I have