please look at the converters that are now in 1.3. those are much simpler
and you should be able to do what you want pretty quickly
in 1.2.x it is also possible. But it is a bit harder
Because if you want BigDecimals support for both ways you have to make 2
and then register one for String->BigDecimals (in the StringConverter i
believe)
and BigDecimals->String
johan
On 3/14/07, Anders Peterson <[EMAIL PROTECTED]> wrote:
Hi,
I use Wicket 1.2.5 and have been looking at Converters (IConverter &
ITypeConverter).
The problem I want to solve is "formatting" my BigDecimals correctly.
Can't understand why this should be so complicated. Why have converters
at all? Java already has java.text.Format with the methods:
Object parseObject(String source)
String format (Object obj)
What more do we need? (Maybe generics...)
How do I get rid of "0E-9" when using Wicket 1.2.5 and Java 1.5? Why
isn't this - whatever the solution is - the default behavior of Wicket?
/Anders
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user