You can override getConverter() on a component to return any converter you want.
Thomas On Sun, Feb 8, 2009 at 6:53 PM, Martin Makundi < [email protected]> wrote: > Hi! > > I am a bit confused with the converters in Wicket. I have some numbers > which I want to display with two decimals and some other numbers with > another amout of decimals. > > It appears like Wicket has only one instance of BigDecimalConverter, > which is used everywhere. So if I adjust its NumberFormat, the effect > will be seen everywhere. Is this true? > > Who knows of an flexible but elegant way to work with the Wicket > converters? Creating new converters for each label or textfield > results in a lot of garbage in the memory footprint... > > ** > Martin > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Thomas Mäder Wicket & Eclipse Consulting www.devotek-it.ch
