SV: Internationalizing a DDC

2010-07-08 Thread Wilhelmsen Tor Iver
> Day > Week > Fortnight > Month > Year If you really want to hardcode the options in the HTML like that, remember not to use DropDownChoice which will replace the markup, but make your own FormComponent subclass that preserves the entire markup. In this case, you could try Day But the DropD

Re: Internationalizing a DDC

2010-07-07 Thread always_rick
riod.1 = Day >period.7 = Week >period.14 = Fortnight >period.30 = Month >period.365 = Year > > Sven > > -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Internationalizing

Re: Internationalizing a DDC

2008-08-02 Thread Sven Meier
You can do without the ChoiceRenderer if you put your terms in a property file next to your panel/page: A.java new DropDownChoice("period", ...) { protected boolean localizeDisplayValues() { return true; } } A.html A.properties

Re: Internationalizing a DDC

2008-08-02 Thread Uwe Schäfer
insom wrote: new DropDownChoice("period", new PropertyModel(myObject, "period"), periods, new ChoiceRenderer() { public String getDisplayValue(Object object) { int period = ((Integer) object).intValue(); switch (period) { case 1: return "Day"; ... default:

Internationalizing a DDC

2008-08-01 Thread insom
ow new RuntimeException(); } } } ); My question is, how can I take advantage of Wicket's internationalization capabilities to replace the return values with the proper values for the locale? -- View this message in context: http://www.nabble.com/Internationalizing-a-DDC-tp