7 Replies Latest reply on Aug 17, 2009 4:56 AM by nbelaevski

    rich:modalPanel issue with richfaces 3.3.0 GA

      Hello,
      I am facing an issue with accessing controls inside richfaces modalPanel. The modalPanel was working fine with richfaces 3.2.1 GA version. But when I migrate to 3.3.0 GA version this issue occurs. The modalPanel is displayed but is completely disabled.

      Any idea on how to resolve this issue?

      Thanks,
      Zafer

        • 1. Re: rich:modalPanel issue with richfaces 3.3.0 GA
          nbelaevski

          Hi Zafer,

          Can you please try 3.3.1.GA?

          • 2. Re: rich:modalPanel issue with richfaces 3.3.0 GA

            Hi Nick,
            I have tried with 3.3.1 GA version of richfaces but still facing this issue.

            Thanks,
            Zafer

            • 3. Re: rich:modalPanel issue with richfaces 3.3.0 GA
              nbelaevski

              Zafer,

              Please post page code and information about browser versions in which this problem reproduces.

              • 4. Re: rich:modalPanel issue with richfaces 3.3.0 GA

                Nick,
                Please find the code. The modalPanel I tested is "orgPopUp".

                Browser version used for testing - IE 7.0.5730.11


                <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:a4j="http://richfaces.org/a4j"
                 xmlns:rich="http://richfaces.org/rich"
                 xmlns:jw="http://labs.jboss.com/jbossrichfaces/ui/jw-messages"
                 xmlns:tos="http://www.emirates.uicomponents.com/jsf">
                 <h:form id="upf">
                 <a4j:keepAlive beanName="upfBean"></a4j:keepAlive>
                 <a4j:outputPanel id="testMsg">
                 <t:errormessage width="100%" align="center"
                 MessageHelperInstance="#{upfBean.msgHelper}" id="test" />
                 </a4j:outputPanel>
                 <input type="hidden" name="viewId" value="#{upfBean.viewId}" />
                 <input type="hidden" name="statusId" value="#{upfBean.upf.statusId}" />
                 <f:loadBundle basename="com.upf.UILabels" var="srchLbls" />
                 <table width="100%" cellpadding="0" cellspacing="0" border="0">
                 <tr>
                 <td style="padding-top: 3px; padding-bottom: 2px;"><h:outputLabel
                 styleClass="header-title-class" value="#{srchLbls['upf.title']}" /></td>
                 </tr>
                 <tr>
                 <td style="padding-top: 3px;"><ui:include
                 src="/pages/ur/ProfileHeaderInformation.xhtml" /></td>
                 </tr>
                 <tr>
                 <td><ui:include src="/pages/ur/Upf.xhtml" /></td>
                 </tr>
                 </table>
                 </h:form>
                
                 <rich:modalPanel id="orgPopUp" resizeable="false" shadowOpacity="1"
                 shadowDepth="1" autosized="true" style="width:300px;" height="170">
                 <f:facet name="header">
                 <table cellpadding="0" cellspacing="0" width="295px" height="30px">
                 <tr>
                 <td width="10px"
                 style="background-image: url('../images/popupLeftImg.gif'); background-repeat: repeat; padding: 1px;">
                 </td>
                 <td style="padding-left: 5px; padding-bottom: 5px;">
                 #{srchLbls['upf.abcd']}</td>
                 </tr>
                 </table>
                 </f:facet>
                 <f:facet name="controls">
                 <h:graphicImage value="../images/Close_Icon.gif"
                 style="cursor:pointer;padding-right: 10px;"
                 onclick="try{Richfaces.hideModalPanel('orgPopUp');}catch(e){}" />
                 </f:facet>
                 <h:form>
                 <a4j:keepAlive beanName="upfBean" />
                 <ui:include src="/pages/ur/UpfOrgHierarchyPopUp.xhtml">
                 <ui:param name="panelName" value="orgPopUp" />
                 </ui:include>
                 </h:form>
                 </rich:modalPanel>
                </ui:composition>
                



                The following custom styles are applied to modal panel component.

                .dr-mpnl-mask-div{
                 position:fixed;
                 top:0;left:0;border:0;margin:0;
                 padding:0;width:100%;height:100%;
                 border-style:none;
                 background-color:black;filter:alpha(opacity=0);opacity:0;
                }
                .rich-mpnl-controls{
                 position:absolute;
                 top:10px;
                 right:3px;
                }
                
                .dr-mpnl-shadow{
                 position:absolute;
                 height:100%;
                 width:100%;
                 border:1px solid;
                 z-index:1;
                }
                .dr-mpnl-pnl{
                 background-color:#f5f2eb;
                 border-color:#C45E00;
                }
                .dr-mpnl-pnl-h{
                 background-color:#C8B28E;
                 border-color:#CEBEA7;
                 background-image:url(../images/popupBackground.gif);
                 background-repeat:repeat-x;
                 height: 29px;
                 vertical-align: middle;
                 color: white;
                }
                .dr-mpnl-pnl-text{
                 font-size:11px;
                 color:white;
                 font-weight:bold;
                 font-family:Verdana,Arial,sans-serif;
                 vertical-align: middle;
                }
                .dr-mpnl-shadow{
                 background-color:inherit;
                 border: 0px;
                 opacity:0;
                }
                



                Thanks,
                Zafer

                • 5. Re: rich:modalPanel issue with richfaces 3.3.0 GA
                  nbelaevski

                  Zafer,

                  I guess the reason is the same as: https://jira.jboss.org/jira/browse/RF-7330. Can you try 3.3.2-snapshot?

                  • 6. Re: rich:modalPanel issue with richfaces 3.3.0 GA

                    Nick,
                    This issue is resolved in 3.3.2 snapshot version. But I can only use 3.3.0GA version of richfaces for my project. Is it possible to let me know the fixes so that I can include them in my version of richfaces jar?

                    Thanks,
                    Zafer

                    • 7. Re: rich:modalPanel issue with richfaces 3.3.0 GA
                      nbelaevski

                      Zafer,

                      Here is our bugtracking system: https://jira.jboss.org/jira/browse/RF and all info about activities can be extracted from there. It has Fisheye integration, so that you can see what changes were made in the code for each issue. If you want to get just changes in the code, you can just checkout 3.3.0.GA tag and merge 3.3.2-snapshot branch there.