Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
395
Set any tab as "selected" programatically
posted

Hi,

      My jsf page has multiple tabs. My requirement is to set any one tab as selected when this page is invoked in browser based on a global variable that is available in the backing bean. How can this be done ?

Please help

Regards

 

  • 1579
    posted

    Hi,

    You can use the setSelectedTabItem(TabItem tabItem) method of the com.infragistics.faces.tab.component.html.TabView class. Just bind a property in your bean of this type with the WebTab component. Also you should bind the tabItems in your WebTab with properties of type com.infragistics.faces.tab.component.TabItem and set them as arguments in the method mentioned above.

    Regards!