Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-508

panelNavigation2 Repeating Entries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 1.1.4-SNAPSHOT
    • None
    • Panel Navigation2
    • None
    • Tomcat 5.5 MyFaces 1.1.3, Facelets 1.1.10

    Description

      The navigation items are repeated if the panelNavigation2 tag is enclosed within a form and an action within another form refreshes to the same view. I have noticed this with JSP based tiles and with Facelet templates. The following is a simple Facelets page that will reproduce the problem. Note the two separate h:form tags. This is common when inside a template element but shown here to reproduce the problem in its simplest use.

      <?xml version="1.0" encoding="iso-8859-1"?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:t="http://myfaces.apache.org/tomahawk">
      <head>
      <title>Test Page</title>
      </head>
      <body>
      <div id="wrap">
      <div class="topnav" id="nav">
      <h:form id="navigationForm">
      <t:panelNavigation2><t:navigationMenuItem itemLabel="This Will Repeat" /></t:panelNavigation2>
      </h:form>
      <h:form id="rootForm">
      <h:commandLink>Repeat</h:commandLink>
      </h:form>
      </div>
      </div>
      </body>
      </html>

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              symmetrysolutions James McCarthy
              Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: