Hi ADF Experts,
we are using dynamic tab shell template in our project.I have many tabs opened in page ,When I navigate from one tab
to another tab , current tab needs to be refreshed.
when I navigate from tabs below mwthod will execute.
public void tabActivatedEvent(ActionEvent action)
{
RichCommandNavigationItem tab =
(RichCommandNavigationItem) action.getComponent();
Integer tabIndex = (Integer) tab.getAttributes().get("tabIndex");
List<Tab> tabs = getTabs();
Tab currTab = tabs.get(getSelectedTabIndex());
if (currTab.isDirty())
{
//JRS set the dirty tab as the current tab, so when the dialog handles 'YES'
// it will be getting the correct tab index to close
setSelectedTabIndex(getSelectedTabIndex());
_showDialog(getTabDirtyPopup());
return;
}
setSelectedTabIndex( tabIndex);
}
public void setSelectedTabIndex(int index)
{
_tabTracker.setSelectedTabIndex(index);
initTrackTabDirty();
refreshTabContent();
}
public void refreshTabContent()
{
AdfFacesContext.getCurrentInstance().addPartialTarget(getTabsNavigationPane());
AdfFacesContext.getCurrentInstance().addPartialTarget(getContentArea());
}
Help me if anyone knows how to achieve this.
Thanks in advance.