XHRPost() + display error message + invalid data submit + Spring MVC Framework

error: function(error) Should display the error message on ivalid XHRPost()

Hi,

I am Prasad new to DOJO.
My Requirement:
Steps:
1. I had one form need to fill data and submit it.
2. On success of subit it refresh list table below form to display the newly added record.
3. On failure it is displaying the form in the place of list table instead of refreshing it.
4. My requirment if submit functionality fails due to some technical failure i want to display the proper error message instead display the form again in the list table place.
5. I am using Spring MVC framework with SimpleFormController.
6. Since it is Spring MVC it validates the form data and on failure of form data validation it goes to showform method in SimpleFormController and sending the form in the view again.
Instead of form i want to get the message to display.
7. If anyone knows solution for this problem please help me
8. Thanks in advance

Syndicate content

Back to top