Examples of GregorianCalendarPropertyEditor


Examples of it.hotel.controller.propertyeditors.GregorianCalendarPropertyEditor

    SystemUtils.print("initBinder");
    // to actually be able to convert Multipart instance to byte[]
    // we have to register a custom editor
    binder.registerCustomEditor(byte[].class, new ByteArrayMultipartFileEditor());
    binder.registerCustomEditor(BigDecimal.class, new CustomNumberEditor(BigDecimal.class, DecimalFormat.getInstance(RequestContextUtils.getLocale(request)),true));
    binder.registerCustomEditor(GregorianCalendar.class,new GregorianCalendarPropertyEditor());
    binder.registerCustomEditor( Double.class, new CustomNumberEditor(Double.class, DecimalFormat.getInstance(RequestContextUtils.getLocale(request)),true));
//    binder.registerCustomEditor(File.class, new FileEditor());
//    binder.registerCustomEditor( Float.class, new CustomNumberEditor(Float.class, DecimalFormat.getInstance(RequestContextUtils.getLocale(request)),true));
    // now Spring knows how to handle multipart object and convert them
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.