Re: T5.0.6 : How to format a number in a TextField

2007-11-04 Thread Shing Hing Man
I have extended DoubleTranslator.java and override the method DoubleTranslator.toClient to format the output. public class MyDoubleTranslator extends DoubleTranslator{ @Override public String toClient(Double value) { String returnValue = null;

T5.0.6 : How to format a number in a TextField

2007-11-03 Thread Shing Hing Man
In Tap 4, I can use translator:number,pattern=0.# (which used NumberTranslator.java) to format the numeric value in a TextField component. How can this be done in T5.0.6 ? I have checked the T5.0.6 API, it looks as though T5.0.6 has no NumberTranslator.java . Must I implement a

Re: T5.0.6 : How to format a number in a TextField

2007-11-03 Thread Marcus
Hi Shing, Try this http://wiki.apache.org/tapestry/Tapestry5OutputLocaleNumber Marcus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T5.0.6 : How to format a number in a TextField

2007-11-03 Thread Marcus
Sorry, this is to output, not used in Textfield - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]