[jboss-user] [JBoss Seam] - Re: f:converter and maxdigits

damianharvey do-not-reply at jboss.com
Sun Jan 27 02:11:51 EST 2008


I can't stand Java's implementation of currency formats. What user is ever going to remember to type in the correct currency sign? Better off using the basic format and setting the fractions.

Small change to the above; in both methods replace the:
NumberFormat nf = NumberFormat.getCurrencyInstance();
with:NumberFormat nf = NumberFormat.getInstance();
  | nf.setMaximumFractionDigits(2);
  | nf.setMinimumFractionDigits(2);


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123808#4123808

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123808



More information about the jboss-user mailing list