This content has been marked as final.
Show 2 replies
-
1. Re: rich:tabPanel get selectedTab with javascript
nbelaevski Sep 8, 2009 8:28 AM (in response to johndoe123)Hi,
You can use ontabchange attribute to track tab switching. -
2. Re: rich:tabPanel get selectedTab with javascript
johndoe123 Sep 8, 2009 8:59 AM (in response to johndoe123)I use this method to track my changes (it works, too, when the page is refreshed):
function tabChanged() { if(RichFaces.isTabActive('#{rich:clientId('myFirstTab')}_lbl')) { disembedSearchPanel(); } else if(RichFaces.isTabActive('#{rich:clientId('mySecondTab')}_lbl')) { embedSearchPanel(); } }
I admit, its quite a hack, but it does what I need.