1 Reply Latest reply on Oct 18, 2007 5:03 PM by sergeysmirnov

    rich:modalPanel error after updating to 3.1.1

      I was using rich:madalPanel before with richfaces 3.0 and every thing was fine yesterday I updated to richfaces 3.1.1, every thing other then rich:modalPanel is working fine.

      I have a form inside the rich:modalPanel on form submission or invalid input it no longer hides the rich:modalPanel earlier default behaviour was to hide the rich:modalPanel, do I have to do any changes to retain the same behaviour


       <a class="button" href="javascript:Richfaces.showModalPanel('rejectConfirm',{top:200})">
       #{uimessages['action.common.requestRevisionLabel']}
       </a>
      
      
      
      
      <rich:modalPanel id="rejectConfirm" minHeight="200" minWidth="325"
       height="200" width="325" zindex="2000000">
       <f:facet name="header">
       <h:outputText value="#{uimessages['action.business.rejectConfirm.title']}" />
       </f:facet>
       <f:facet name="controls">
       <h:graphicImage value="/images/close.png" style="cursor:pointer" onclick="Richfaces.hideModalPanel('rejectConfirm')" />
       </f:facet>
       <h:form id="rejectConfirmForm">
       <h:inputTextarea id="rejectConfirmComment" value="#{businessReview.comment}"
       required="true" rows="8" cols="52">
       <f:validateLength minimum="0" maximum="1000"/>
       </h:inputTextarea>
       <br/>
       <br/>
       <div align="center">
       <a class="button" href="javascript:Richfaces.hideModalPanel('rejectConfirm')">
       Cancel
       </a>
       <f:verbatim> </f:verbatim>
       <f:verbatim> </f:verbatim>
       <a4j:commandLink styleClass="button"
       action="#{businessReview.rejectVideo}" value="#{uimessages['action.common.submitlabel']}"
       reRender="orderSteps, orderActionPanel, orderHistoryPanel"/>
       </div>
       </h:form>
      </rich:modalPanel>
      


        • 1. Re: rich:modalPanel error after updating to 3.1.1

          I do not remember that hiding the panel was the default behaviour. The modal panel is a part of the page (DIV with absolute position). When the page is reloaded, the panel us gone. It is not because it is closed. It is just gone with the page. To reload the page, you need to have #{businessReview.rejectVideo} returned the valid action outcome and validation passed correctly. If not, it will be Ajax Response and panel should stay unless you close it explicitly.

          I am not quite sure what the use cases you want to have. Could you describe the cases point by point please.