please try to omit the double-quotes and commas. The following should work:
translator="translator:number,omitZero=false,pattern=#0.00"


If you need the comma, you can set up your translator in Java and bind it
via ... translator="ognl:fancyTranslator". The simple bean initializers only
work for really simple cases.

2007/11/17, bioye <[EMAIL PROTECTED]>:
>
>
> How do I make NumberTranslator display leading and trailing zeros in my
> TextField?  Using markup as below, I expect 0 to appear as 0.00 but it
> appears as 0.  I also expect 0.8 to appear as 0.80 but it appears as .8 .
> My markup is:
>
> span size="8" jwcid="@TextField" value="ognl:transaction.price"
> translator="translator:number,omitZero=false,pattern="###,##0.00"
> style="text-align:right"
>
> I'm using T4.13
> --
> View this message in context:
> http://www.nabble.com/T4%3ANumberTranslator-Leading-and-Trailing-0%27s-tf4827165.html#a13810955
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Marcus Schulte
http://marcus-schulte.blogspot.com

Reply via email to