return ed.getValue(); } else if (EncounterType.class.equals(clazz)) { EncounterTypeEditor ed = new EncounterTypeEditor(); ed.setAsText(string); return ed.getValue(); } else if (Form.class.equals(clazz)) { FormEditor ed = new FormEditor();
@Override protected EncounterTypeEditor getNewEditor() { return new EncounterTypeEditor(); }
@InitBinder public void initBinder(WebDataBinder binder) { binder.registerCustomEditor(EncounterType.class, new EncounterTypeEditor()); }
return ed.getValue(); } else if (EncounterType.class.isAssignableFrom(clazz)) { EncounterTypeEditor ed = new EncounterTypeEditor(); ed.setAsText(val); return ed.getValue(); } else { return val;
@InitBinder public void initBinder(WebDataBinder binder) { binder.registerCustomEditor(EncounterType.class, new EncounterTypeEditor()); binder.registerCustomEditor(java.util.Date.class, new CustomDateEditor(SimpleDateFormat.getDateInstance(SimpleDateFormat.SHORT, Context.getLocale()), true)); }