Thanks Thiago. I was hoping that someone had already implemented a generic numeric translator that allowed formatting to be specified at the field level, e.g. number of decimal places, whether or not thousands separators should be displayed, etc. If I need to implement it myself, I would like to know how best to provide this info to the translator on a per field basis. Should I create a NumericField component (subclass of TextField) and add parameters for this?
Benny On Tue, Nov 17, 2009 at 5:37 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Tue, 17 Nov 2009 20:12:22 -0200, Benny Law <benny.mk....@gmail.com> > escreveu: > > > Is there a simpler way to do this, i.e. specify formatting for TextField? >> If custom Translators is the way to go, has anyone built something for >> numbers that reflects the current locale? >> > > Implement your own translator, as it probably will be used in many places > in your application. > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, > and instructor > Owner, software architect and developer, 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 > >