myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abhilash Kumar (JIRA)" <...@myfaces.apache.org>
Subject [jira] Created: (TOMAHAWK-673) PanelNavigation2 multiplication on post back
Date Fri, 15 Sep 2006 13:41:22 GMT
PanelNavigation2 multiplication on post back
--------------------------------------------

                 Key: TOMAHAWK-673
                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-673
             Project: MyFaces Tomahawk
          Issue Type: Bug
          Components: Examples, Panel Navigation2
    Affects Versions: 1.1.3, 1.1.5-SNAPSHOT
         Environment: Linux / Windows, JDK 1.5_0_07, Tomcat 5.0.28 / Tomcat 5.5.17
            Reporter: Abhilash Kumar


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="#{navigationMenu.panelNavigationItems}"
/>
    </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.

 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message