Announcement Announcement Module
No announcement yet.
Spring MVC with Dojo Need Help Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring MVC with Dojo Need Help

    I am new to develop java code in combination of Sping MVC, Dojo.
    I have problem with SimpleFormController,

    My Problem:

    1. I am able to get the create employee form using xhrGet() of Dojo showForm-SimpleFormController Successfully.
    2. I am able to submit the create employee form using xhrPost() of Dojo onSubmit-SimpleFormController Successfully and update the employees list table without page refresh.
    3. Problem occurs when we are submiting the create employee form with invalid date validation is failing and in place of employees list table to get refreshed it is displaying the create employee form.
    4. In Spring MVC when using SimpleFormController on validation fails processFormSubmission() is redirecting to the showForm() - SimpleFormController instead of going to onSubmit() - SimpleFormController
    So it is displaying create employee form with validation messages.
    5. I dont want it to display the create employee form. I want it to display the validation errors beside the exiting widgets instead of displaying the form again with validation messages.
    6. Thanks in advance for providing the solution/idea to process furthur.

  • #2
    I didnot clearly understand item 5 you mentioned here.
    However one thought.
    Why don't you override processFormSubmission() method and get your custom behaviour?
    i.e. skip showForm() call and do whatever you want.