Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

PhaseListener only on form submit not ajax request  RSS feed

 
ala alal
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I wrote my own validation phase listener but I want to execute the method only when the request comes from the form submit and not from an Ajax request.
I've some fields with onblur validation and that cause the phaselistener to be called.
I just want it to be executed when I press the SUBMIT button.
Something like this:

afterPhase(PhaseEvent arg0) {
if (ajaxrequest)
return;
else {
....
.....
}
}

Some help?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!