Monday, November 8, 2010

OAF Sub Tab Layout Control

setting the active tab

        OASubTabLayoutBean subTabLayout =
             (OASubTabLayoutBean) webBean.findChildRecursive("SubTabLayout");
        subTabLayout.setSelectedIndex(pageContext, 0);

getSelectedIndex method returns the index of the active tab

show or hide the tab by the boolean parameter (false = show it; true = hide it) 
       
        subTabLayout.hideSubTab(0, true);

No comments:

Post a Comment