You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Sidhik, Rosmon" <Ro...@AIG.com> on 2008/04/03 15:59:23 UTC

t:panelNavigation2/t:navigationMenuItems problem

Hi Experts,

 

I have the following code for a navigation menu:

Page: leftpane.jsp ->

Code starts here 

 

----

 

<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%@taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>

 

<t:div id="subnavigation_outer"

      style="float: left; width: 200px; padding: 0px; margin: 0px 0px 0px
0px;">

      <t:div id="subnavigation"

            style="margin-left: 0px; margin-right: 20px; padding: 0px 0px
20px 0px; border: 1px solid #546359; background-color: #EAF4F4;">

            <t:panelNavigation2 id="navitems" layout="list"
itemClass="mypage"

                  activeItemClass="selected" openItemClass="selected"

                  rendered="#{myPartyBean.viewTabs['details'] == 'true'}">

                  <t:navigationMenuItems
value="#{myPartyBean.navigationMenuItems}" />

            </t:panelNavigation2>

      </t:div>

</t:div>

 

This code is included in another page using subview and jsp:include. 

 

          <f:subview id="leftPane">

              <jsp:include page="leftpane.jsp" flush="true" />

          </f:subview>

 

The navigation menu renders properly first time and works properly when we
navigate through various menus.

The problem is that when the page containing the subview is accessed later,
the old state of the navigation menu is displayed.

Also, I set a breakpoint in myPartyBean.getNavigationMenu(), but control
never goes into that method.

So, somehow the menu is getting cached somewhere.

I'm using 

java.faces.STATE_SAVING_METHOD set to server in the web.xml.

 

Any hints or help would be immensely helpful. I even tried putting a break
point in the tomahawk code where the navigation menu gets rendered but
apparently it's not going to the code.

Thanks

Rosmon