aspose file tools
The moose likes JSF and the fly likes PhaseListener only on form submit not ajax request Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "PhaseListener only on form submit not ajax request" Watch "PhaseListener only on form submit not ajax request" New topic
Author

PhaseListener only on form submit not ajax request

ala alal
Greenhorn

Joined: May 18, 2009
Posts: 8
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?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: PhaseListener only on form submit not ajax request
 
Similar Threads
ajax and struts2
how to clear the values of components on validation errors in JSF
link css style sheet
Refresh Page
AJAX Request