6 Replies Latest reply on Feb 1, 2008 3:38 PM by Nick Belaevski

    Modal w/ dropDownMenu and PleaseWaitBox

    Jason Long Master

      I started a topic here, but the title is misleading.

      http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114046

      I think I have narrowed it down to the following code. The modal panel does not open if inside the menu. I get a concurrent access problem in my full application. Here the window just does not open.

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:rich="http://richfaces.org/rich"
       xmlns:a4j="http://richfaces.org/a4j">
       <html>
       <head></head>
       <body>
       <a4j:form>
       <a4j:commandButton value="a4j:commandButton outside rich:dropDownMenu "
       oncomplete="javascript:Richfaces.showModalPanel('testPanel');" />
       </a4j:form>
       <a4j:form>
       <rich:dropDownMenu>
       <f:facet name="label">
       <h:outputText value="dropDownMenu" />
       </f:facet>
       <rich:menuItem>
       <a4j:commandButton id="testModal2"
       value="a4j:commandButton inside rich:dropDownMenu"
       oncomplete="javascript:Richfaces.showModalPanel('testPanel');" />
       </rich:menuItem>
       </rich:dropDownMenu>
       </a4j:form>
      
       <!-- Modal to open -->
       <rich:modalPanel id="testPanel">
       <f:facet name="header"> </f:facet>
       <f:facet name="controls">
       <h:graphicImage value="http://livedemo.exadel.com/richfaces-demo/images/modal/close.png"
       onclick="Richfaces.hideModalPanel('testPanel')" />
       </f:facet>
       </rich:modalPanel>
      
       <!-- Please Wait Modal -->
       <a4j:status onstart="Richfaces.showModalPanel('ajaxLoadingModalBox')"
       onstop="Richfaces.hideModalPanel('ajaxLoadingModalBox')" />
       <rich:modalPanel id="ajaxLoadingModalBox"
       zindex="20000">
       ajaxLoadingModalBox
       </rich:modalPanel>
       </body>
       </html>
      </ui:composition>
      
      Any ideas? Please see previous listed topic link at the beginning of this post for reference.