Our product uses spring web mvc 3.0 before and we recently upgraded to 3.2.2 version. After upgradation the binders (custom editors) stopped working. All our controller either extends SimpleFormController or AbstractFormController and we register our binders in the initbinder method like the following
Problem: if user request has app def id then spring is calling binders to convert to AppDef object and this object is properly set to the command object. But while sending the response back to the browser then getAsText() of the registered custom editor is not being called by the framework. Hence the selected app def id is not going back and user loosing the selection.
This code was working with the old version of spirng before. Is there anything we are missing here in the new version?
hari krishna galla opened SPR-11286 and commented
Our product uses spring web mvc 3.0 before and we recently upgraded to 3.2.2 version. After upgradation the binders (custom editors) stopped working. All our controller either extends SimpleFormController or AbstractFormController and we register our binders in the initbinder method like the following
protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception { binder.registerCustomEditor(AppDef.class, new AppDefPropertyEditor (configManager)); }
Problem: if user request has app def id then spring is calling binders to convert to AppDef object and this object is properly set to the command object. But while sending the response back to the browser then getAsText() of the registered custom editor is not being called by the framework. Hence the selected app def id is not going back and user loosing the selection.
This code was working with the old version of spirng before. Is there anything we are missing here in the new version?
Affects: 3.2.2