public void updateCurrentTabTitle(String title) {
TabContext tabContext = TabContext.getCurrentInstance();
int currentTabIndex = tabContext.getSelectedTabIndex();
Tab tab = tabContext.getTabs().get(currentTabIndex);
tab.setTitle(title);
//force refresh
tabContext.setSelectedTabIndex(currentTabIndex);
}
Be sure that you have defined a "tabContext" input parameter in your task flow definition so you can access the TabContext object.
DeepSeek OCR Review
15 hours ago
