@Test public final void testInitBinder() { MockHttpServletRequest request = new MockHttpServletRequest(); ServletRequestDataBinder binder = new ServletRequestDataBinder(new SiteCommand(), "command"); try { testInstance.initBinder(request, binder); } catch (Exception e) { String message = e.getClass().toString() + " - " + e.getMessage(); log.debug(message); fail(message); } }
@Override protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception { super.initBinder(request, binder); NumberFormat nf = NumberFormat.getInstance(request.getLocale()); binder.registerCustomEditor(Long.class, "targetOid", new CustomNumberEditor(Long.class, nf, true)); }
TabbedTargetController extends TabbedController { @Override protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception { super.initBinder(request, binder); NumberFormat nf = NumberFormat.getInstance(request.getLocale()); binder.registerCustomEditor(Long.class, "targetOid", new CustomNumberEditor(Long.class, nf, true)); } }
TabbedTargetController extends TabbedController { @Override protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception { super.initBinder(request, binder); NumberFormat nf = NumberFormat.getInstance(request.getLocale()); binder.registerCustomEditor(Long.class, "targetOid", new CustomNumberEditor(Long.class, nf, true)); }  }
TabbedTargetController extends TabbedController { @Override protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception { super.initBinder(request, binder); NumberFormat nf = NumberFormat.getInstance(request.getLocale()); binder.registerCustomEditor(Long.class, "targetOid", new CustomNumberEditor(Long.class, nf, true)); }  void bindEditorContext(HttpServletRequest req, TargetEditorContext context); void unbindEditorContext(HttpServletRequest req); TargetEditorContext getEditorContext(HttpServletRequest req); void setTargetManager(TargetManager targetManager); void setBusinessObjectFactory(BusinessObjectFactory businessObjectFactory); void setSearchController(TargetSearchController searchController); void setMessageSource(MessageSource messageSource); void setAuthorityManager(AuthorityManager authorityManager); }
TabbedTargetController extends TabbedController { @Override protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception { super.initBinder(request, binder); NumberFormat nf = NumberFormat.getInstance(request.getLocale()); binder.registerCustomEditor(Long.class, "targetOid", new CustomNumberEditor(Long.class, nf, true)); }  void bindEditorContext(HttpServletRequest req, TargetEditorContext context); void unbindEditorContext(HttpServletRequest req); TargetEditorContext getEditorContext(HttpServletRequest req); void setTargetManager(TargetManager targetManager); void setBusinessObjectFactory(BusinessObjectFactory businessObjectFactory); void setSearchController(TargetSearchController searchController); void setMessageSource(MessageSource messageSource); void setAuthorityManager(AuthorityManager authorityManager); static final String EDITOR_CONTEXT; }