I have different divisions in my JSF page like (Patient Info one divison, Surgery info one division). Both divisions are there on the same form. I want to validate only one division at a time while sumbit.
What I mean is
1) Validate Pation Info Section only when user clicks save on patient Info
2) Validate Surgery Info only when user clicks save on Surgery Info
Now it is showing errors related to both sections.
JSF forms are built on the HTML FORM infrastructure and therefore subject to the same basic rules. In HTML, each FORM is considered individually. When you click on the form's submit button, only data defined within that form is transmitted to the server - consequently, server-side validation is only possible for the items within that form.
In other words, not only is the behavior you're describing the default behavior, you don't even have a choice. That's how it's going to behave. And, correspondingly, if someone clicks a submit button on one form that responds with a new page, data entered in other forms on the original page will be discarded when the old page is replaced with the new page.
Customer surveys are for companies who didn't pay proper attention to begin with.