Hi!
On Mon, 09 Apr 2012 10:20:27 -0300, <mwilliam...@kcp.com> wrote:
I am writing a new component and this is first time I have needed to use
the Translate parameter.
I am getting this error : Failure reading parameter 'translate' of
component InfoTest:namesearch.name: Unknown translator type 'translator'.
You should contribute your translator to the TranslatorSource service.
Something like this in your AppModule:
public static void contributeTranslatorSource(Configuration<Translator>
configuration) {
configuration.add(new YourTranslator()) {
}
This has the advantage of being your translator being used automatically
used when it fits.
Another option is to use translate="prop:translator" instead of
translate="translator", as the translate parameter default binding is
'translate', not 'prop'.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org