On 7/31/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> if you want to do that globally you have to register a stringconverter that
> will convert an integer so. if you want to do it only for a certain kind of
> textfield you can subclass getconverter() on it.
There's an example of this in wicket-e
if you want to do that globally you have to register a stringconverter that will convert an integer so. if you want to do it only for a certain kind of textfield you can subclass getconverter() on it.here is a woogle:
http://woogle.billen.dk/search/q/converter, look at the wiki page especially-Igo
You need 3 classes for this. 1 class to convert from string to number.
1 class to convert from number to string. and 1 converterfactory with
both classes registered for your number type.
for instance
private static final class IridiumConverterFactory implements IConverterFactory
{