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;
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
Hi Shing,
Try this http://wiki.apache.org/tapestry/Tapestry5OutputLocaleNumber
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Sorry, this is to output, not used in Textfield
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]