Re: Basic l10n / i18n question: must page be re-rendered?

2011-08-26 Thread Alexandros Karypidis
Hi again, Just to add to this that the following will work for pages with parameters: @Override protected void onSelectionChanged(Locale newSelection) { super.onSelectionChanged(newSelection); // the following tells wicket to instantiate a new page using the current

Basic l10n / i18n question: must page be re-rendered?

2011-08-23 Thread Alexandros Karypidis
Hello, I have written a locale selector by extending DropDownChoice (you can see the essential stuff of the implementation below). The problem is that when the user changes the locale, the page needs to be re-rendered using the newly selected locale. This does NOT happen. Instead, only the

Re: Basic l10n / i18n question: must page be re-rendered?

2011-08-23 Thread Gregor Kaczor
I have exactly the same problem, though i use an xml file for the translations. Any help out there? On 08/23/2011 02:09 PM, Alexandros Karypidis wrote: Hello, I have written a locale selector by extending DropDownChoice (you can see the essential stuff of the implementation below). The

Re: Basic l10n / i18n question: must page be re-rendered?

2011-08-23 Thread Alexandros Karypidis
Hi Gregor, I've found a way to do this by manipulating the request cycle. However, it will only work if you don't mind losing any page state, as it generates a new page rendering. I do this by overriding onSelectionChanged(...) of the DropDownChoiceLocale as follows: @Override

Re: Basic l10n / i18n question: must page be re-rendered?

2011-08-23 Thread Igor Vaynberg
the pub and form input examples works correctly, take a look at those. -igor On Tue, Aug 23, 2011 at 11:13 AM, Gregor Kaczor gkac...@gmx.de wrote: I have exactly the same problem, though i use an xml file for the translations. Any help out there? On 08/23/2011 02:09 PM, Alexandros Karypidis