You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Joost Schouten <jo...@jsportal.com> on 2007/03/14 03:55:40 UTC
t:commandNavigation2 only navigates on second click
Hi,
I have my navigation setup using t:panelNavigation2 and t:commandNavigation2
(see below). All works fine except for the fact that if I click on a
t:commandNavigation2 the first time it reloads the open view and causes the
activeOnViewIds to be forgotten. The second time I click the navigation is
successful. Does anyone have any idea what I am doing wrong?
Thanks,
Joost
<t:panelNavigation2 id="nav1" layout="list" itemClass="off"
activeItemClass="on" openItemClass="on"
renderAll="true">
<t:commandNavigation2 style="padding-left: 0px;">
<t:outputText value="#{webLabels['nav.myInfo']}"/>
<t:commandNavigation2 activeOnViewIds="/user_dashboard"
action="go_user_dashboard">
<t:outputText
value="#{webLabels['nav.myInfo.myDashboard']}"/>
</t:commandNavigation2>
<t:commandNavigation2 activeOnViewIds="/user_profile"
action="go_user_profile">
<t:outputText
value="#{webLabels['nav.myInfo.myProfile']}"/>
</t:commandNavigation2>
</t:commandNavigation2>
</t:panelNavigation2>