Have you tried something like the following ? <span jwcid="@Insert" value="ognl:myNumber" format="ognl:myNumberFormat"/>
where the method getMyNumberFormat() is in your page java class and returns a java.text.NumberFormat. Instead of ognl:myNumberFormat, you could also use bean:myNumberFormat, where myNumberFormat is a bean set up in the .page file. More details and an example on the Insert component is at http://jakarta.apache.org/tapestry/tapestry/ComponentReference/Insert.html Shing --- Ryan Pan <[EMAIL PROTECTED]> wrote: > Hi all, > Is there someone who knows how to display a > double number on the UI > correctly. > For example, "4.021258" is double number,but I > just wanna show "4.0212" > on the UI.So is there someone kindly to show me how > to achieve that? > > > Regards, > Ryan. > Home page : http://uk.geocities.com/matmsh/index.html ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
