List of usage examples for org.springframework.web.bind WebDataBinder registerCustomEditor
@Override
public void registerCustomEditor(Class<?> requiredType, PropertyEditor propertyEditor)
From source file:org.openmrs.module.facilitydata.web.controller.FacilityDataFormListController.java
@InitBinder public void initBinder(WebDataBinder binder) { binder.registerCustomEditor(FacilityDataForm.class, new FacilityDataFormEditor()); }
From source file:org.openmrs.module.facilitydata.web.controller.FacilityDataQuestionListController.java
@InitBinder public void initBinder(WebDataBinder binder) { binder.registerCustomEditor(FacilityDataQuestion.class, new FacilityDataQuestionEditor()); }
From source file:ua.epam.rd.web.AbstractPizzaContoller.java
@InitBinder private void pizzaBinder(WebDataBinder binder) { binder.registerCustomEditor(Pizza.class, new PropertyEditorSupport() { @Override//from ww w . j a v a2 s . co m public void setAsText(String pizzaId) { Pizza pizza = null; if (pizzaId != null && !pizzaId.trim().isEmpty()) { Long id = Long.valueOf(pizzaId); pizza = getPizzaById(id); } setValue(pizza); } }); }
From source file:com.mtech.easyexchange.mvc.exchange.CreateOrderController.java
@InitBinder public void initBinder(WebDataBinder dataBinder) { dataBinder.registerCustomEditor(Currency.class, new CurrencyEnumConverter()); }
From source file:org.terasoluna.gfw.functionaltest.app.string.FullHalfPairsBuilderWithStringTrimmerController.java
@InitBinder public void initConvertPairFormWebDataBinder(WebDataBinder binder) { binder.registerCustomEditor(String.class, new StringTrimmerEditor(true)); }
From source file:jpa_bayan.PersonController.java
@InitBinder public void initBinder(WebDataBinder binder) { binder.registerCustomEditor(Person.class, new P_PropertyEditor(personDao)); }
From source file:controllers.parent.WebController.java
@InitBinder public void standartInitBinder(WebDataBinder binder) { binder.registerCustomEditor(Date.class, dateEditor); }
From source file:com.amuponda.estorehack.client.web.controller.ProductController.java
@InitBinder public void initBinder(WebDataBinder webDataBinder) { webDataBinder.registerCustomEditor(Category.class, new PropertyEditorSupport() { @Override// w w w .j ava2 s . c o m public void setAsText(String text) { setValue(categoryService.findByName(text)); } }); }
From source file:de.berlios.jhelpdesk.web.preferences.NotifyEditController.java
@InitBinder public void initBinder(WebDataBinder binder) { binder.registerCustomEditor(NotifyFrequency.class, notifyFrequencyEditor); }
From source file:com.googlecode.deadalus.rest.RestController.java
@InitBinder public final void initBinder(WebDataBinder binder) { binder.registerCustomEditor(UUID.class, new UUIDEditor()); binder.registerCustomEditor(Coordinate.class, new CoordinateEditor()); }