Parent not null but this component not related
I am using Suns RI with Apache Tomahawk. I am trying to implement a menu structure using the tag
<t:panelNavigation2 id="nav1" >
as,
<t:panelNavigation2 id="nav1" >
<t:navigationMenuItems value="#{userBean.panelNavigationItems}" />
</t:panelNavigation2>
Upon doing so, I get the following error:
java.lang.IllegalStateException: Parent was not null, butthis component not related
at javax.faces.component.UIComponentBase.eraseParent(UIComponentBase.java:437)
at javax.faces.component.UIComponentBase.access$500(UIComponentBase.java:56)
at javax.faces.component.UIComponentBase$ChildrenList.add(UIComponentBase.java:1460)
at org.apache.myfaces.custom.navmenu.htmlnavmenu.HtmlNavigationMenuRenderer.addUINavigationMenuItems(HtmlNavigationMenuRenderer.java:194)
at org.apache.myfaces.custom.navmenu.htmlnavmenu.HtmlNavigationMenuRenderer.preprocessNavigationItems(HtmlNavigationMenuRenderer.java:178)
at org.apache.myfaces.custom.navmenu.htmlnavmenu.HtmlNavigationMenuRenderer.encodeEnd(HtmlNavigationMenuRenderer.java:99)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:623)
at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:546)
at org.apache.myfaces.taglib.UIComponentBodyTagBase.doEndTag(UIComponentBodyTagBase.java:55)
at org.apache.jsp.menu_jsp._jspx_meth_t_panelNavigation2_0(menu_jsp.java:184)
at org.apache.jsp.menu_jsp._jspx_meth_h_form_0(menu_jsp.java:143)
at org.apache.jsp.menu_jsp._jspx_meth_f_view_0(menu_jsp.java:113)
at org.apache.jsp.menu_jsp._jspService(menu_jsp.java:77)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
Any help on this would be greately appreciated. Thanks much.

