0 Replies Latest reply on May 16, 2008 6:57 AM by Marco Bergen

    rich:dropDownMenu and rich:modalPanel via "include"

    Marco Bergen Newbie

      i'm triing to include a Menu.jsp site which contains a rich:dropDownMenu and a modalPanel with the connected commandbutton

      when the menu is rendered the first time on the first page everything is fine but when i use a menuItem to navigate to the next site where the menu is also included the problmes beginns.

      if i'm using <jsp:include page="Menu.jsp"/> the dropDownMenu and the Navigation works fine but the ModalPanels don't work.

      i get a JS-Error "this.markerId is not defined"

      if i'm using <a4j:include viewId="Menu.jsp"/> the ModalPanel works fine but not the navigation via dropdownmenu.

      In the second Case i get a stack overflow error


      
      java.lang.StackOverflowError
       java.util.HashMap.get(HashMap.java:300)
       org.apache.catalina.connector.Request.getAttribute(Request.java:887)
       org.apache.catalina.connector.RequestFacade.getAttribute(RequestFacade.java:263)
       org.apache.myfaces.context.servlet.RequestMap.getAttribute(RequestMap.java:44)
       org.apache.myfaces.util.AbstractAttributeMap.get(AbstractAttributeMap.java:87)
       org.ajax4jsf.context.AjaxContext.getCurrentInstance(AjaxContext.java:115)
       org.ajax4jsf.renderkit.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:110)
       org.ajax4jsf.component.AjaxViewRoot.encodeAjax(AjaxViewRoot.java:553)
       org.ajax4jsf.component.AjaxViewRoot$4.invokeRoot(AjaxViewRoot.java:384)
       org.ajax4jsf.context.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:56)
       org.ajax4jsf.context.AjaxContextImpl.invokeOnRegionOrRoot(AjaxContextImpl.java:170)
       org.ajax4jsf.component.AjaxViewRoot.encodeChildren(AjaxViewRoot.java:401)
       org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282)
       org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
       org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:284)
       org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:143)
       org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxChildren(AjaxChildrenRenderer.java:86)
       org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:134)
       org.ajax4jsf.renderkit.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:122)
       org.ajax4jsf.component.AjaxViewRoot.encodeAjax(AjaxViewRoot.java:553)
       org.ajax4jsf.component.AjaxViewRoot$4.invokeRoot(AjaxViewRoot.java:384)
       org.ajax4jsf.context.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:56)
       org.ajax4jsf.context.AjaxContextImpl.invokeOnRegionOrRoot(AjaxContextImpl.java:170)
       org.ajax4jsf.component.AjaxViewRoot.encodeChildren(AjaxViewRoot.java:401)
       org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:282)
       org.ajax4jsf.renderkit.RendererBase.renderChildren(RendererBase.java:262)
       org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:284)
       org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:143)
       org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxChildren(AjaxChildrenRenderer.java:86)
       org.ajax4jsf.renderkit.AjaxChildrenRenderer.encodeAjaxComponent(AjaxChildrenRenderer.java:134)
       org.ajax4jsf.renderkit.AjaxContainerRenderer.encodeAjax(AjaxContainerRenderer.java:122)
       org.ajax4jsf.component.AjaxViewRoot.encodeAjax(AjaxViewRoot.java:553) ... .... .. and so on


      any solotions?