Announcement Announcement Module
Collapse
No announcement yet.
How send back to userform from SimpleFormController Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How send back to userform from SimpleFormController

    Hi,

    I have a tricky problem, I am using validator after the I am in Controller which extends SimpleFormController. I am validating in the controller and trying to send it back to the user form with the errors, its not going back to the user form instead of going to successView even though I have errors.

    Code:
    if(!registrationService.registerUser(users)){
    				errors.rejectValue("username", "username.exists", "User Name already exists, try again by changing the User Name.");
    				return super.onSubmit(request, response, command, errors);
    }
    I am excepting this to go back to the form view instead of success view.

    Any help?

    Thanks
    Kumar
Working...
X