Thank you for your quick response.
It's working now! Thank you!

On Thu, Aug 13, 2009 at 3:04 PM, Mathias
Nilsson<wicket.program...@gmail.com> wrote:
>
> 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: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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

Reply via email to