3 Replies Latest reply on Sep 22, 2007 1:46 PM by maksimkaszynski

    showModalPanel - problems in RichFaces 3.1.0

    liat

      Hi,

      I recently upgraded rich faces from 3.0.1 to 3.1.0.
      After the upgrade most of the application pages are working fine but I have problems with showModalPanel.
      The same code that worked before is not working now and the pop-up window doesn't open.I don't have form inside form.

      I saw that there is java script error: ModalPanel.Sizer.NWU is null or not an object.
      I also saw that there were alot of changes in the modalPanel.js between verion 3.0 and version 3.1.

      Here are parts of the code:

      The modal panel defintion -

      <a4j:outputPanel id="defConstraintOutputPanel">
       <rich:modalPanel id="defConstraintModalPanel" minHeight="250" minWidth="340" height="450" width="340">
      <f:facet name="header">
      <h:outputText id="defConstraintTitle" value="#{messages['PARAM_ASSGNMENT_PAGE.TITLE_FOR_DEF_BASED']}" />
      </f:facet>
      <a4j:include id="defConstraintMPInclude" viewId="./wizard/AddDefinitionConstraint.xhtml"/>
      </rich:modalPanel>
      </a4j:outputPanel>


      The call for showModalPanel -

      <a4j:support id="onConstClickedOne" event="onclick"
      action="#{pageBean.onConstraintClicked}"
      oncomplete="Richfaces.showModalPanel('defConstraintModalPanel',{width:100, top:50})"reRender="addDefConstraintPopup, defConstraintTitle, defConstraintOutputPanel">
      <f:param name="editedConstraintWebId" value="#{constraint.webId}" />
      <f:param name="parameterReference"value="#{fragment.reference}"/>
      </a4j:support>


      Do you have any idea what might be the problem ?