I finally found out why the navigationCommands are created twice, and the style is not applied - it happens when the redirect works for the navigation. Now I wonder - is it possible to make panelNavigation work with redirect? Maybe the author could give his 2 cents?
Michał Małecki
Hello,
I hope you can help me, because I'm running out of ideas. I created menu (panelNavigation) :
<x:panelNavigation id="nav" activeItemClass="navitemActive"
openItemClass="navitemOpen" itemClass="navitem"
separatorClass="navitemSeparator">
<x:commandNavigation id="intro" action="intro"
actionListener="#{books.allBooksListener}" value="Intro" />
<x:commandNavigation id="edit" action="edit" value="Dodaj" />
<h:outputText value="Wyszukaj" />
<x:commandNavigation id="categories" value="Kategorie">
<x:commandNavigation id="cat_manage" action="categories"
value="Zarządzaj" actionListener="#{editor.bookNotEdited}" />
</x:commandNavigation>
<h:outputText value="Raporty" />
</x:panelNavigation>


Unfortunately ActiveStyle is not applicate for intro and edit (they always keep itemClass style). I put some printlns into myfaces source (I couldn't make eclipse debug to work) and I found out that this components are created twice - first in the org.apache.myfaces.application.TreeStructureManager.internalRestoreTreeStructure(TreeStructureManager.java:111)

where it is initialized properly (_active property is set to true), and then second time, in the jsp - org.apache.jsp.intro_jsp._jspx_meth_x_commandNavigation_0(intro_jsp.java:293)

that second component is not initialized, so it still is not active

children components (e.g. id="cat_manage") are working fine to make everything more confusing. Any ideas?
Michał Małecki





begin:vcard
fn:Michal Malecki
n:Malecki;Michal
org:Poznan Supercomputing and Networking Centre
email;internet:[EMAIL PROTECTED]
title:M. Sc.
x-mozilla-html:FALSE
version:2.1
end:vcard

Reply via email to