This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Behaviour for commit operation

Apr 13th, 2008, 03:19 PM

Hi,

I would like to change the default behaviour for commit operation when using internacionalized properties. So instead of calling the setter method directly I need to call a custom method aware of the language to be set.

Comment

Just to be completely clear, are you trying to i18n your API (and not just the messages?)?

Yes, that is.

I have a requirement consisting on making internacionalizable some attributes of my domain entities. So, we have created a custom type (Translation) aware of the language to be set (Language) , with these methods:

Translation#setValue(String value, Languag lang);

Translation#getValue(Language lang);

My idea is to add a value model to the formModel referring the internacionalized property. This value model holds a String object.