Code example for CustomNumberEditor

0
	 *      org.springframework.web.bind.ServletRequestDataBinder) 
	 */ 
	protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception { 
		super.initBinder(request, binder); 
		 
		binder.registerCustomEditor(java.lang.Integer.class, new CustomNumberEditor(java.lang.Integer.class, true)); 
		binder.registerCustomEditor(java.util.Date.class, new CustomDateEditor(Context.getDateFormat(), true)); 
		binder.registerCustomEditor(java.util.Date.class, "valueDatetime", new CustomDateEditor(Context.getDateTimeFormat(), 
		        true)); 
		binder.registerCustomEditor(java.util.Date.class, "valueTime", new CustomDateEditor(Context.getTimeFormat(), true)); 
		binder.registerCustomEditor(Location.class, new LocationEditor()); 
		binder.registerCustomEditor(java.lang.Boolean.class, new CustomBooleanEditor(true)); //allow for an empty boolean value 
		binder.registerCustomEditor(Person.class, new PersonEditor()); 
		binder.registerCustomEditor(Order.class, new OrderEditor()); 
		binder.registerCustomEditor(Concept.class, new ConceptEditor()); 
		binder.registerCustomEditor(Location.class, new LocationEditor()); 
		binder.registerCustomEditor(Encounter.class, new EncounterEditor()); 
		binder.registerCustomEditor(Drug.class, new DrugEditor()); 
	} 
	 
Contextual code suggestions in your IDE  Get Codota for Java