You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by janw <ja...@gmx.de> on 2006/06/26 16:12:25 UTC
Duplicated menu-items in a combimnation of tiles and
panelNavigation2
Hello,
I'm new to JSF and have propably a typical beginner's problem.
I'm using tiles, analogously to the tiles example: a header area, a
navigation area on the left (panelNavigation2) and the actual content.
The content may contain a dataScroller. Clicking a navigation link of the
dataScroller (Next, Previous, no matter which) leads to the following
result:
The menu-items are tripled, i.e. each menu item appears three times! The
order is like this:
- Menu_Item_1
- Menu_Item_2
- Menu_Item_3
- Menu_Item_1
- Menu_Item_1
- Menu_Item_2
- Menu_Item_2
- Menu_Item_3
- Menu_Item_3
The template (template.jsp) and the tiles.xml are almost like those in the
example project from ExadelStudio.
If anyone has a deja-vu or an idea what the reason may be, any hints are
appreciated.
Please excuse if this is a too simple question, but I didn't know of any
other myfaces forum.
Best regards
Jan
The source code for the page that contains the dynamic menu and the page
that contains the dataTable:
------------------------------------------------------
menu_dynamic.jsp:
------------------------------------------------------
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<h:form>
<t:div id="subnavigation_outer">
<t:div id="subnavigation">
<t:panelNavigation2 id="nav1" layout="list"
itemClass="mypage" activeItemClass="selected"
openItemClass="selected">
<t:navigationMenuItems value="#{menueBean.panelNavigationItems}" />
</t:panelNavigation2>
</t:div>
</t:div>
</h:form>
------------------------------------------------------
order_overview.jsp:
------------------------------------------------------
<h:form>
<t:dataTable id="data" ...>
<t:column >
<f:facet name="header">
<t:commandSortHeader columnName="id" arrow="false"
immediate="false">
<f:facet name="ascending">
<t:graphicImage value="images/ascending-arrow.gif"
rendered="true" border="0" />
</f:facet>
<f:facet name="descending">
<t:graphicImage value="images/descending-arrow.gif"
rendered="true" border="0" />
</f:facet>
<h:outputText value="#{messages['auftrag.id']}" />
</t:commandSortHeader>
</f:facet>
<h:commandLink action="auftrag_detail" immediate="true">
<h:outputText value="#{auftrag.id}" />
<!-- for convenience: MyFaces extension. sets id of current row in
countryForm -->
<!-- you don't have to implement a custom action! -->
<!-- <t:updateActionListener property="#{auftragDetail.id}"
value="#{auftrag.id}" /> -->
</h:commandLink>
</t:column>
<!-- further columns... -->
</t:dataTable>
<h:panelGrid columns="1" styleClass="scrollerTable2"
columnClasses="standardTable_ColumnCentered">
<t:dataScroller id="scroll_1" for="data" fastStep="10"
pageCountVar="pageCount" pageIndexVar="pageIndex"
styleClass="scroller" paginator="true" paginatorMaxPages="9"
paginatorTableClass="paginator"
paginatorActiveColumnStyle="font-weight:bold;">
<f:facet name="first">
<t:graphicImage url="images/arrow-first.gif" border="1" />
</f:facet>
<!-- further facets... -->
</t:dataScroller>
</h:panelGrid>
</h:form>
--
View this message in context: http://www.nabble.com/Duplicated-menu-items-in-a-combimnation-of-tiles-and-panelNavigation2-t1849193.html#a5047742
Sent from the MyFaces - Users forum at Nabble.com.