-
1. Re: On Richface TabPanel, validation not happening on previo
ilya_shaikovsky Jun 2, 2009 6:56 AM (in response to paskal.sanil)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. -
2. Re: On Richface TabPanel, validation not happening on previo
nbelaevski Jun 2, 2009 3:05 PM (in response to paskal.sanil)Client tabs are also validated. Try this <rich:tab label="2" switchType="ajax" immediate="false">
-
3. Re: On Richface TabPanel, validation not happening on previo
paskal.sanil Jun 3, 2009 4:57 AM (in response to paskal.sanil)Hi,
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? -
4. Re: On Richface TabPanel, validation not happening on previo
ilya_shaikovsky Jun 3, 2009 5:59 AM (in response to paskal.sanil)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.