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

Using panelNavigation2 and navigationMenuItems with JSF RI cause a java.lang.IllegalStateException.

    XMLWordPrintableJSON

Details

    Description

      Using panelNavigation2 and navigationMenuItems with JSF RI causes this exception to be thrown:

      java.lang.IllegalStateException: Parent was not null, but this component not related
      ...

      Read people asking about this issue at:

      http://forum.java.sun.com/thread.jspa?threadID=706057

      I think the problem is HtmlNavigationMenuRenderer because it calls setParent() before adding the new item as a child. I believe that even calling setParent is wrong as stated by specs (see 3.1.7 of jsf-1_1-mr-spec.pdf).

      Attachments

        1. panelNav2fix.patch
          1 kB
          Adrian Perez Jorge

        Issue Links

          Activity

            People

              bruno_dev Bruno Aranda
              aperez Adrian Perez Jorge
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: