That should be possible out of the box...:)
Edward Yakop wrote:
Translator translator = new Translator( Locale.GERMAN );
Hotel translatedHotel = translator.translate( hotel );
translatedHotel.getDescription(); // return description in german
translatedHotel.setDescription( "die Beschreibung" ); // persist german
description
I think it would be very cool to extend that API to have a better
wicket integration.
It would be very cool if we can do the following:
<code>
BoundCompoundPropertyModel model = new
TranslatableBoundCompoundPropertyModel( hotel );
TextField descriptionField = ...;
model.bind( descriptionField, "description" );
</code>
Regards,
Edward Yakop
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]