only in client side switch type.
with any other switch type - all that you have on the client at any moment(and all what will be processed after submit) is current tab.
Client tabs are also validated. Try this <rich:tab label="2" switchType="ajax" immediate="false">
Thanks both of you for an early reply. It seems like solution suggeted by ilya_shaikovsky works. Just one more query on this -
Is it possible to switch automatically to the tab which caused the error when such validation error occurs?
In other words, i am on the second tab and validation error occurs in the first tab "on Submit". Is it possible for first tab to come to highlight automatically when the error occurs?
we already implemented this once.. but unfortunatelly seems I've lost the code and not posteed it to demo or blogs..
In order to implement this we just defined ajaxListener on the button which called even if the validation failed. In this listener we checked if the messages present. Then we performs checking for messages for components inside some of tabs. And if found make the first tab found selected. I'will ask the guy who made this works if he could post the code.