2016-06-11 61 views

回答

0

如果TabContext可用。否則傳遞選項卡上下文參數

try { 
    TabContext.getCurrentInstance().setTabsRendered(true); 
    TabContext.getCurrentInstance().addOrSelectTab("Your Tab Name", 
                 "/WEB-INF/task-flow-definition.xml#task-flow-definition"); 
} catch (TabContext.TabOverflowException e) { 
    e.printStackTrace(); 
} 

參見:TaskFlow