Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
1.1.3, 1.1.5-SNAPSHOT
-
None
-
None
-
Linux / Windows, JDK 1.5_0_07, Tomcat 5.0.28 / Tomcat 5.5.17
Description
PanelNavigation2 getting multiplicated on post back
To generate this issue, the steps needs to be followed are :
1. Take the myfaces-example-simple-1.1.5-SNAPSHOT.war
2. Deploy it with Tomcat (I tested with standalone Tomcat 5.0.28 and Tomcat 5.5.17 comes with JBoss )
3. Take web.xml and change the value of the param "javax.faces.STATE_SAVING_METHOD" to "client"
4. Take the file panelnavigation_2.jsp and add <h:form> start tag and </h:form> closing tags around <t:panelNavigation2> tag . So now it will be
<h:form>
<t:panelNavigation2 id="nav1" layout="list" itemClass="mypage" activeItemClass="selected"
disabledStyle="color:red;padding: 2px 20px 2px 25px">
<t:navigationMenuItems id="navitems" value="#
" />
</t:panelNavigation2>
</h:form>
5. Add another <h:form tag with a command button in the page. I added towards the last of the page - just above the closing </f:view> tag like this;
<h:form>
<h:commandButton id="save" value="Post Back" />
</h:form>
6. Take the page in IE or Firefox(I used IE 6 and Firefox 1.5.07) and clikc on the commandbutton. The menu items will be multiplicated.
This problem only appears if the state saving method is client AND if there is a <h:form> tag surrounding the <t:panelNavigation2 > AND you have another <h:form> in the page AND you post back.
Attachments
Issue Links
- is related to
-
TOMAHAWK-508 panelNavigation2 Repeating Entries
- Reopened