My Custom validator gets executed before PROCESS_VALIDATIONS phase
Hi All,
Can anybody clear my below doubts.
1) In my JSP page i have one text box that has a custom validator registered. The moment user does an ActionEvent my Validator function gets executed inside APPLY_REQUEST_VALUES phase. How it is possible ?
2)How can I skip APPLY_REQUEST_VALUES or PROCESS_VALIDATION phase. Do I have a control on it.
[367 byte] By [
balajii_Aa] at [2007-10-2 16:55:50]

1) How do you know that it's getting executed in the APPLY_REQUEST_VALUES phase?
2) I don't think you can skip the APPLY_REQUEST_VALUES phase unless you create your own custom lifecycle. But let's not go there.
You can skip PROCESS_VALIDATION phase by setting the immediate flag to true on your commandButton (or component, if the component is submitting the page).
You can also skip to the RENDER_RESPONSE phase or RESPONSE_COMPLETE phase by calling the respective method in the FacesContext. i.e. get the FacesContext and then call renderResponse() or responseComplete(). This will complete the current phase and then skip to the designated phase.
CowKing