And the problem with rendering the navigation:
the code from the facelets template:
anonymous wrote :
| <ui:insert name="navigation">
|
|
| <ui:include src="navigationmenu.xhtml" />
|
|
| </ui:insert>
|
the inserted navigationmenu.xhtml
anonymous wrote :
| <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <div
xmlns="http://www.w3.org/1999/xhtml"
|
xmlns:c="http://java.sun.com/jstl/core"
|
xmlns:ui="http://java.sun.com/jsf/facelets"
|
xmlns:t="http://myfaces.apache.org/tomahawk"
|
xmlns:f="http://java.sun.com/jsf/core"
|
xmlns:h="http://java.sun.com/jsf/html">
|
|
| <h:form id="navForm">
| <t:panelNavigation2 id="nav01" layout="list"
itemClass="mypage" activeItemClass="selected"
openItemClass="selected" >
|
| <t:commandNavigation2 id="listing"
value="#{messages['nav_0']}" >
|
| <t:commandNavigation2 id="listingStandard"
value="1" action="#{productform.processAction}">
| <t:outputText value="#{messages['nav_0_1']}"
/>
| </t:commandNavigation2>
|
| <t:commandNavigation2 id="listingNonfood" value="4"
action="#{productform.processAction}">
| <t:outputText value="#{messages['nav_0_2']}"
/>
| </t:commandNavigation2>
|
| <t:commandNavigation2 id="listingRqm" value="3"
action="#{productform.processAction}">
| <t:outputText value="#{messages['nav_0_3']}"
/>
| </t:commandNavigation2>
|
| <t:commandNavigation2 id="listingRol" value="5"
action="#{productform.processAction}">
| <t:outputText value="#{messages['nav_0_4']}"
/>
| </t:commandNavigation2>
|
| <t:commandNavigation2 id="listingTest" value="2"
action="#{productform.processAction}">
| <t:outputText value="#{messages['nav_0_5']}"
/>
| </t:commandNavigation2>
|
| <t:commandNavigation2 id="listingAktion"
action="null" value="#{messages['nav_0_6']}" >
|
| <t:commandNavigation2 id="listingAktionNonfood"
value="7" action="#{productform.processAction}">
| <t:outputText value="#{messages['nav_0_6_1']}"
/>
| </t:commandNavigation2>
|
| <t:commandNavigation2 id="listingDrogerie"
value="6" action="#{productform.processAction}">
| <t:outputText value="#{messages['nav_0_6_2']}"
/>
| </t:commandNavigation2>
|
| </t:commandNavigation2>
|
| <t:commandNavigation2 id="listingDezentral"
value="8" action="#{productform.processAction}">
| <t:outputText value="#{messages['nav_0_7']}"
/>
| </t:commandNavigation2>
|
| </t:commandNavigation2>
|
| <t:commandNavigation2 id="arbeitsliste" action="worklist"
actionListener="#{worklist.processAction}" >
| <t:outputText value="#{messages['nav_1']}" />
| </t:commandNavigation2>
|
| <t:commandNavigation2 id="prozesse"
value="#{messages['nav_2']}" >
|
| <t:commandNavigation2 id="prozessTemplates"
actionListener="#{templatelist.processAction}">
| <t:outputText value="#{messages['nav_2_1']}"
/>
| </t:commandNavigation2>
|
| <t:commandNavigation2 id="prozessInstanzen"
actionListener="#{instancelist.processAction}">
| <t:outputText value="#{messages['nav_2_2']}"
/>
| </t:commandNavigation2>
|
| </t:commandNavigation2>
|
| <t:commandNavigation2 id="logoff" action="#{worklist.logoff}"
>
| <t:outputText value="#{messages['nav_4']}" />
| </t:commandNavigation2>
|
| </t:panelNavigation2>
| </h:form>
|
|
|
the web.xml is configured correctly, every t:-component is use works fine including the
navigation. It only initializes after ervery rendering and doesn't hold the state.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958663#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...