I decided to use Struts 2 DOJO plugin for the ajax validation of my forms.
I have:
- Added Struts2 dojo and json plugin to project
- Added 'jsonValidationWorkflowStack' intercepter to my actions
- Included dojo taglib and
<sx:head />
tag on my page - Included
<sx:submit validate="true" />
in my form
Now, after populating fields my form will not submit. No action will be performed.
I would also like to mention that I run my validation programatically, instead of xml.