When I read some old posts discussing changes to the converts I thought you where trying to re-invent Format. All that would be required is a factory/cache that finds/builds the correct instance and perhaps some new Format subclasses.
If you can code MyOwnBigDecimal, then my would it be impossible to code a MyOwnFormat and register it with the factory/cache? I don't know how the new converters work - I'm sure they're great. I look forward to the next new release! /Anders Igor Vaynberg wrote: > do i control the factory? what if i have MyOwnBigDecimal class and i > want to write a formatter to go between that and a string automatically. > how do i integrate that into the jdk api so it works transparently like > it would if i used wicket's converters? > > -igor > > > On 3/14/07, *Anders Peterson* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Not sure what you mean, but if you control the factory you control the > formatters. /Anders > > Igor Vaynberg wrote: > > and does that api support registering your own converters? > > > > -igor > > > > > > On 3/14/07, *Anders Peterson* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > > <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>> wrote: > > > > No. You create them specifying which Locale to use. Look at > the static > > factory methods in NumbverFormat. > > > > > http://java.sun.com/j2se/1.5.0/docs/api/java/text/NumberFormat.html > > > > All Wicket would needs is a FormatFactory that reads the > Locale from > > the > > request/session/user and instantiates correct Format instances. > > > > /Anders > > > > Martijn Dashorst wrote: > > > On 3/14/07, Anders Peterson <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > > <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>> wrote: > > >> One of my questions remain: Why does Wicket need > converters at > > all? Java > > >> already has java.text.Format with two-way conversion between > > String and > > >> some other class. > > > > > > But they assume the VM's locale, not the locale of the > > request/session/user. > > > > > > Martijn > > > > > > > > > > ------------------------------------------------------------------------- > > 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 > > <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV> > > > <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>> > > _______________________________________________ > > Wicket-user mailing list > > [email protected] > <mailto:[email protected]> > > <mailto: [email protected] > <mailto:[email protected]>> > > https://lists.sourceforge.net/lists/listinfo/wicket-user > <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 > > <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV> > > > > > ------------------------------------------------------------------------- > 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 > > <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV> > _______________________________________________ > Wicket-user mailing list > [email protected] > <mailto:[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 > ------------------------------------------------------------------------- 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
