This content has been marked as final.
Show 1 reply
-
1. Re: Can a tab change be prevented?
ilya_shaikovsky Oct 8, 2007 5:42 AM (in response to shermanis)Proper way is to use ontableave and ontabenter events on the tabs.
For your case<rich:tab label="test 1" name="tab1" action="#{bean.action}" ontableave="if (!confirm('Sure to leave?')){return false;}">
After you click to any other tab - this confirmation will be displayed and the event will canceled if you press "cancel" button.
B.t.w. Thanks for point to one of the problems :)
http://jira.jboss.com/jira/browse/RF-1084