This content has been marked as final. Show 3 replies
Have you considered using the dynamic tabs shell template? http://www.oracle.com/technetwork/developer-tools/adf/uishell-093084.html
It sounds to me you would be better off setting the tab content from a backing bean, do you have some kind of menu? Add an actionlistener to your menu items to create tabs programmatically in your backing bean. Here is a good example of this technique for your version of ADF
Hope this helps
Thanks for your response.
We are already using UIShell in our application. It is based on One-Page application concept.
Menu is opening the pages in dynamic tabs supported by UIShell.
The page has it's own tabs (showDetailItem under panelTabbed) defined at design time. I need to control activation of taskflows only when they are open.
It works fine after user starts interacting with the tabs as disclosureListener is fired but first time is an issue.
I need a solution to figure out the "open" tab at each level. Obviously, it's too late to change the design/navigation architecture of whole application.
Jai Om wrote:You may have inspected the panelTabbed too early, i.e. before the showDetailItems were created. Try to invoke a backing bean method when the document has finished loading and then inspect the different panel tabbed components in that method to discover your showDetailItems. You can use a pagePhaseListener or a clientlistener + serverlistener + custom event. Try google, there's plenty of examples of these approaches all over the web.
I tried binding panelTabbed in a bean and then try to iterate through it's children but it returns 0 children when page is rendered first time.