very cool, but the options' values are force to 0, 1, 2, 3, 4 ...

<option value="0">Day</option>
<option value="1">Week </option>
<option value="2">Fortnight</option>
<option value="3">Month</option>
<option value="4">Year</option>

I've tried the whole night, any help is appreciated. 
 


Sven Meier wrote:
> 
> 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
>        <select wicket:id="period"/>
> 
>     A.properties
>        period.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-a-DDC-tp1869877p2281661.html
Sent from the Wicket - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to