My problem is that I have 2 forms in a single JSF page each having its <h:message>
or <h:messages>
tag. As we know the message/messages tags print any validation errors, so what happens is, suppose I leave the fields of any of the 2 forms empty it should print "Fields cannot be left blank" or some kind of message. It gives this message, but it gives twice as there are two forms. So I see the same error/validation message at each of the two forms.
So what I need is the <h:messages>
or the <h:message>
tag should display error/validation message only once for each of their respective forms!!
So any help would greatly be appreciated!!