You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Guillaume Bodet <gb...@gmail.com> on 2012/11/26 09:28:43 UTC

Custom messages source

Hi all,


I am migrating an application to Tapestry 5.3. This application uses its
own system to manage i18n messages (using a database to store messages).

I would like to bridge its API to t5's Messages API, so I can transparently
use the "message" binding with keys from the old system.

Unfortunately, I did not find a easy way to achieve this (this only way to
contribute the ComponentMessageSource is to provide extra Resources with a
file semantic).

Any idea?


Best regards


Guillaume

Re: Custom messages source

Posted by Lance Java <la...@googlemail.com>.
You will either decorate or override ComponentMessagesSource

http://tapestry.apache.org/tapestry-ioc-decorators.html
http://tapestry.apache.org/ioc-cookbook-overriding-ioc-services.html
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/messages/ComponentMessagesSource.html



--
View this message in context: http://tapestry.1045711.n5.nabble.com/Custom-messages-source-tp5718277p5718278.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org