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

Panel Stack example fails with Message: There is more than one JSF tag with id : treePanel for parent component with id : 'stack'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.5, 1.1.7-SNAPSHOT
    • 1.1.7
    • Examples, Panel Stack
    • None
    • JSP

    Description

      The current example page for Panel Stack component, panelstack.jsf, blows up immediately with message:
      There is more than one JSF tag with id : treePanel for parent component with id : 'stack'

      Viewing the source, the problem comes from the following panelGroup code having been copied-and-pasted, without either id being changed:

      <t:panelStack id="stack" selectedPanel="#

      {stackState.selected}

      ">
      <h:panelGroup id="treePanel">
      <h:form>
      <t:tree id="tree" value="#

      {treeModel}"
      styleClass="tree"
      nodeClass="treenode"
      selectedNodeClass="treenodeSelected"
      expandRoot="true">
      </t:tree>
      </h:form>
      <f:verbatim><br></f:verbatim>
      </h:panelGroup>
      <h:panelGroup id="treePanel">
      <h:form>
      <t:tree id="tree" value="#{treeModel}

      "
      styleClass="tree"
      nodeClass="treenode"
      selectedNodeClass="treenodeSelected"
      expandRoot="true">
      </t:tree>
      </h:form>
      <f:verbatim><br></f:verbatim>
      </h:panelGroup>

      Suggested solutions: either delete the second panelGroup or replace their ids with "treePanel1" and "treePanel2", respectively. If I have time, I'll post a patch with the latter solution.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bischoje Jeff Bischoff
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: