Re: Custom label for number and currency formatting?

2007-10-05 Thread Eelco Hillenius
Label dbl = new Label(dbllbl,+x){ Why pass in a string? Better is to do new Label(foo, new Model(x)); @Override protected void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag)

Re: Custom label for number and currency formatting?

2007-10-05 Thread Tauren Mills
Thanks for the ideas. Here is my implementation. I split it into two classes since I may want to use the CurrencyConverter separately. In my initial testing it works well, but I haven't tested convertToObject(). Let me know if anyone sees any issues or has suggested improvements: public class

Custom label for number and currency formatting?

2007-10-03 Thread Tauren Mills
Does such a thing exist? I thought it did, but can't find it now. Basically, I want a Label that allows me to format floats/doubles as currency. I don't need i18n built in (for different currencies, etc.), just take double x=8.3 and output $8.30. Any pointers are appreciated! Thanks. Tauren

Re: Custom label for number and currency formatting?

2007-10-03 Thread swaroop belur
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Custom-label-for-number-and-currency-formatting--tf4564849.html#a13032472 Sent