You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jim O'Callaghan <ji...@peritussolutions.com> on 2010/09/19 15:55:35 UTC

@Translate annotation

I'm have a NumberFormatBinding service as outlined on this list previously
,to mask numeric fields for display with a format mask ex. 

 

<t:textField t:id="amount" value="amount" translate="numberFormat:#,##0.00"
/>

 

I noticed in T5.2.0 there is an @Translate annotation - rather than using
specifying the translator repeatedly in various tml files, is there some way
I can name the translator on a bean property, and also pass in the mask to
be used?  The @Translate annotation appears to just take a 'value' parameter
that is the name of the translator.

 

Thanks,

Jim.