Hi Thiago, I finally got some time to revisit this. I spent some time last night trying to subclass AbstractTextField as you suggested, but got lost. I would appreciate it if you or anybody else could give me some pointers. What I am trying to do is to create a NumericField by extending AbstractTextField and adding a format parameter which accepts a decimal format pattern. Using this pattern string, NumericField will provide a translator based on that pattern. Again, the motivation behind this is so that I can control precisely how many decimal places to display and whether group separators should be displayed. Where I got lost is figuring out how to provide the custom translator from within NumericField.
Thanks in advance, Benny On Wed, Nov 18, 2009 at 8:11 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Wed, 18 Nov 2009 22:02:42 -0200, Benny Law <benny.mk....@gmail.com> > escreveu: > > > 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. >> > > AFAIK, it's not possible. > > > Should I create a NumericField component (subclass of TextField) and add >> parameters for this? >> > > Sublass AbstractTextField instead. > > > -- > 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 > >