(For those just joining this
thread: If the user clicks "Save", certain validations are optional, but if the user clicks "Submit", all validations must pass.)
I can do the check as part of the method being executed as a result of clicking the "Submit" button, but because we're no longer in the validation phase at that point, there's no way for me to add a FacesMessage to the FacesContext (so far as I know).
Is there no way for a custom validation method to determine which button was clicked on the form? If nothing else, the FacesContext must know what action is to be performed after validation is complete. Is there any way to get access to this information?
Anyone have any ideas?