Search in sources :

Example 1 with IConverterLocator

use of org.apache.wicket.IConverterLocator in project ocvn by devgateway.

the class FormsWebApplication method newConverterLocator.

/**
     * @see org.apache.wicket.Application#newConverterLocator() This adds the
     *      {@link NonNumericFilteredBigDecimalConverter} as the standard
     *      {@link BigDecimal} converter for ALL fields using this type accross
     *      the application
     **/
@Override
protected IConverterLocator newConverterLocator() {
    ConverterLocator locator = (ConverterLocator) super.newConverterLocator();
    locator.set(BigDecimal.class, new NonNumericFilteredBigDecimalConverter());
    return locator;
}
Also used : IConverterLocator(org.apache.wicket.IConverterLocator) ConverterLocator(org.apache.wicket.ConverterLocator) NonNumericFilteredBigDecimalConverter(org.devgateway.toolkit.forms.wicket.converters.NonNumericFilteredBigDecimalConverter)

Aggregations

ConverterLocator (org.apache.wicket.ConverterLocator)1 IConverterLocator (org.apache.wicket.IConverterLocator)1 NonNumericFilteredBigDecimalConverter (org.devgateway.toolkit.forms.wicket.converters.NonNumericFilteredBigDecimalConverter)1