2 Replies Latest reply on Jun 12, 2012 6:25 PM by hoveran211

    modal popup panel hides all contents in main window

    hoveran211

      Just discovered that in RF4.2.2, when a modal popup panel is invoked, the content in the main window becomes invisiable.

       

      This problem only happen in Internet Exporerer.  The version I used is IE 8.

      In firefox, Chrome, the problem does not exist.

       

      In RF4.2.0, the problem does not exist.

       

      Please see the two screenshots below. Once the popup panel invoked, in the first one (Firefox), the button in the main window is still visiable.)  In the second one, the button cannot be seen.

       

      firefox.jpgInternet Explorer.jpg

       

      The code I used for testing is the same as the Showcase. I do not know why the showcase works well. maybe it is still using RF4.2.0?

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

      <html xmlns="http://www.w3.org/1999/xhtml"

          xmlns:f="http://java.sun.com/jsf/core"

          xmlns:h="http://java.sun.com/jsf/html"

          xmlns:a4j="http://richfaces.org/a4j"

          xmlns:c="http://java.sun.com/jsp/jstl/core"

          xmlns:fn="http://java.sun.com/jsp/jstl/functions"

          xmlns:rich="http://richfaces.org/rich">

      <h:head>

          <title>Requirement Workflow</title>

       

      </h:head>

      <h:body>

       

          <h:commandButton value="Call the popup">

              <rich:componentControl target="popup" operation="show" />

          </h:commandButton>

          <rich:popupPanel id="popup" modal="true" resizeable="true" onmaskclick="#{rich:component('popup')}.hide()">

              <f:facet name="header">

                  <h:outputText value="Simple popup panel" />

              </f:facet>

              <f:facet name="controls">

                  <h:outputLink value="#" onclick="#{rich:component('popup')}.hide(); return false;">

                      X

                  </h:outputLink>

              </f:facet>

              <p>You can also check and trigger events if the use clicks outside of the panel.</p>

       

              <p>In this example clicking outside closes the panel.</p>

          </rich:popupPanel>

       

       

       

      </h:body>

      </html>

        • 1. Re: modal popup panel hides all contents in main window
          hoveran211

          Not sure if this is related but also noticted these warning messages: 

          Jun 11, 2012 11:48:33 AM org.richfaces.resource.CompiledCSSResource$ErrorHandlerImpl logException

          WARNING: Problem parsing 'org.richfaces/popupPanel.ecss' resource: Error in expression. Invalid token "=". Was expecting one of: <S>, ",", "/", "+", "-", <HASH>, <STRING>, ")", <URI>, "inherit", <EMS>, <EXS>, <LENGTH_PX>, <LENGTH_CM>, <LENGTH_MM>, <LENGTH_IN>, <LENGTH_PT>, <LENGTH_PC>, <ANGLE_DEG>, <ANGLE_RAD>, <ANGLE_GRAD>, <TIME_MS>, <TIME_S>, <FREQ_HZ>, <FREQ_KHZ>, <DIMEN>, <PERCENTAGE>, <NUMBER>, "rgb(", <FUNCTION>, <IDENT>, <UNICODERANGE>.

          Jun 11, 2012 11:48:33 AM org.richfaces.resource.CompiledCSSResource$ErrorHandlerImpl logException

          WARNING: Problem parsing 'org.richfaces/popupPanel.ecss' resource: Error in style rule. Invalid token "\r\n". Was expecting one of: "}", ";".

          Jun 11, 2012 11:48:33 AM org.richfaces.resource.CompiledCSSResource$ErrorHandlerImpl logException

          WARNING: Problem parsing 'org.richfaces/popupPanel.ecss' resource: Ignoring the following declarations in this rule.

          Jun 11, 2012 11:48:33 AM org.richfaces.resource.CompiledCSSResource$ErrorHandlerImpl logException

          WARNING: Problem parsing 'org.richfaces/popupPanel.ecss' resource: Error in expression. Invalid token "=". Was expecting one of: <S>, ",", "/", "+", "-", <HASH>, <STRING>, ")", <URI>, "inherit", <EMS>, <EXS>, <LENGTH_PX>, <LENGTH_CM>, <LENGTH_MM>, <LENGTH_IN>, <LENGTH_PT>, <LENGTH_PC>, <ANGLE_DEG>, <ANGLE_RAD>, <ANGLE_GRAD>, <TIME_MS>, <TIME_S>, <FREQ_HZ>, <FREQ_KHZ>, <DIMEN>, <PERCENTAGE>, <NUMBER>, "rgb(", <FUNCTION>, <IDENT>, <UNICODERANGE>.

          Jun 11, 2012 11:48:33 AM org.richfaces.resource.CompiledCSSResource$ErrorHandlerImpl logException

          WARNING: Problem parsing 'org.richfaces/popupPanel.ecss' resource: Error in style rule. Invalid token "\r\n". Was expecting one of: "}", ";".

          Jun 11, 2012 11:48:33 AM org.richfaces.resource.CompiledCSSResource$ErrorHandlerImpl logException

          WARNING: Problem parsing 'org.richfaces/popupPanel.ecss' resource: Ignoring the following declarations in this rule.

          Jun 11, 2012 11:48:33 AM org.richfaces.resource.CompiledCSSResource$ErrorHandlerImpl logException

          WARNING: Problem parsing 'org.richfaces/popupPanel.ecss' resource: Error in expression. Invalid token "=". Was expecting one of: <S>, ",", "/", "+", "-", <HASH>, <STRING>, ")", <URI>, "inherit", <EMS>, <EXS>, <LENGTH_PX>, <LENGTH_CM>, <LENGTH_MM>, <LENGTH_IN>, <LENGTH_PT>, <LENGTH_PC>, <ANGLE_DEG>, <ANGLE_RAD>, <ANGLE_GRAD>, <TIME_MS>, <TIME_S>, <FREQ_HZ>, <FREQ_KHZ>, <DIMEN>, <PERCENTAGE>, <NUMBER>, "rgb(", <FUNCTION>, <IDENT>, <UNICODERANGE>.

          Jun 11, 2012 11:48:33 AM org.richfaces.resource.CompiledCSSResource$ErrorHandlerImpl logException

          WARNING: Problem parsing 'org.richfaces/popupPanel.ecss' resource: Error in style rule. Invalid token "\r\n\t". Was expecting one of: "}", ";".

          Jun 11, 2012 11:48:33 AM org.richfaces.resource.CompiledCSSResource$ErrorHandlerImpl logException

          WARNING: Problem parsing 'org.richfaces/popupPanel.ecss' resource: Ignoring the following declarations in this rule.

          • 2. Re: modal popup panel hides all contents in main window
            hoveran211

            It turned out to be my mistake.

             

            For no good reason, I placed the source code jars as well as the binary jars under WEB-INF/lib

             

            After removing the source code jars, it worked well.