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]> 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]>> 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]>> 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>
>     _______________________________________________
>     Wicket-user mailing list
>     Wicket-user@lists.sourceforge.net
>     <mailto:Wicket-user@lists.sourceforge.net>
>     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
Wicket-user@lists.sourceforge.net
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to