On Thu, 30 Apr 2015 12:58:23 -0300, Lance Java <lance.j...@googlemail.com>
wrote:
If you want tapestry to use your translator as the default for all dates
you should contribute to TranslatorSource using a class (instead of
contributing by name to TranslatorAlternativesSource).
Otherwise, you could annotate individual date fields with
@Translate("dateTranslator") and leave your code as is.
Exactly. TextField needs a translator to convert between the edited
property type and String and vice-versa. Tapestry provides translators for
numeric types and String itself. In your case, you're editing a Date, so
you need to provide a translator for Date through TranslatorSource or the
translate parameter explicitly.
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org