Menu

#5 Sub Tab State Problem

open
nobody
None
5
2005-10-20
2005-10-20
Drew Haller
No

I have 2 levels of tabs. A (one,two) , B(one,two,three), C
(one,two,three)

I have associated unique actions to all second level
tabs. For the first level tabs I assoicate the tab to one of
it's childrens actions. E.G. Tab A has Action A/one.

Each action navigates to it's own jsp (view). If I click B.
Then navigate to B/two. Then navigate to C. When I
return to B the action fired is B/one with A/one.jsp
shown but B/two is highlighted.

I have tried switching the managed bean from session
scope to request scope (com.jsftab.model.TabbedPanel).

Here is the config

<tabbed-panel>
<tab id="1" name="A" status="activated"
action="A/one" >
<tab id="10" name="one"
status="activated" action="A/one" />
<tab id="11" name="two"
action="A/two" />
<tab id="11" name="three"
action="A/three" />
</tab>
<tab id="2" name="B" action="B/one">
<tab id="20" name="one"
status="activated" action="B/one" />
<tab id="21" name="two"
action="B/two" />
<tab id="21" name="three"
action="B/three" />
</tab>
<tab id="3" name="C" action="C/one">
<tab id="30" name="one"
status="activated" action="C/one" />
<tab id="31" name="two"
action="C/two" />
<tab id="31" name="three"
action="C/three" />
</tab>
</tabbed-panel>

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.