You can have all the objects have an getResourceKey method.
Override the displayvalue of IChoiceRenderer and show the value.

Example

myproperties_sv.properties
value1=ett test

myProperties_en.properties
value1=A test

The Object
class MyObject{
  private String getResourceKey;
  .. getters and setters
}

new IChoiceRenderer(){
   public Object getDisplayValue(  Object obj ){
     if( obj instanceof MyObject ){

       // The this in getLocalizer must be a component class
       return getLocalizer().getString( ((MyObject)obj).getResourceKey() ,
this );
    }
    return null;
  }
}

Set the local and you can display the value
-- 
View this message in context: 
http://www.nabble.com/multilangual-dropdown-tp24954084p24954218.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to