Hi.
Consider these classes
Are the REQUIRED_FIELDS correctly specified ?Code:public class Registration { private Subject user = new Subject(); private String passwordConfirmation; } public class Subject{ private String name; private String password; } public class RegistrationController extends SimpleFormController { private static final String[] REQUIRED_FIELDS = new String[]{ "user.name", "user.password", "passwordConfirmation" }; @Override public void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception { binder.setRequiredFields(REQUIRED_FIELDS); } }
How should they be specified anyway if they aren't?
Thanks !
P.S. the "user" thing is like in "e.pushNestedPath("user");"



Reply With Quote