Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to suppress client-side validation when field in bind to dojo’s ajax call?  RSS feed

Itamar Avni
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using Struts 2 and Dojo

Given a Form with validate="true" for client-side validation, I have a form textfield that is bind to an Ajax action. When the field is changed the Ajax call should be executed (achieved by events="onkeyup"). Only the bound field is added to the Ajax call (using formFilter attribute).

But, the validation is executed before the Ajax call.

How can I achieve the Ajax action on the field without form client-side validation, and also client-side validation when the form is submitted?

10x for any effort.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!