3 Replies Latest reply on Apr 28, 2008 12:21 PM by Ilya Shaikovsky

    upgrading to  richfaces 3.2.0  the oncomplete not working an

    avi barna Newbie

      hello

      this is my code and it's work fine in richfaces 3.1.4
      since I upgrading to 3.2.0 the oncomplete not working anymroe
      and the ModalPanel don't opend as expected
      any help will be appraised.

      ----------------
      <a4j:commandButton value="#{variants.configuration_actions_edit}" styleClass="my-rich-button-pannel"
      reRender="panelH_edit_one_row"
      actionListener="#{configurationInventory.thisIsMyTable}"
      data="#{configurationInventory.viewConfig}"
      oncomplete="javascript:if(data == 'view' )Richfaces.showModalPanel('edit:editPanelH');" ajaxSingle="true" />

      -----------------

      <rich:modalPanel width="800" height="130" id="editPanelH" left="100" resizeable="true" >

      <f:facet name="header">
      <h:outputText value="Edit selected row" />
      </f:facet>

      <f:facet name="controls">
      <span style="cursor:pointer"
      onclick="javascript:Richfaces.hideModalPanel('editPanelH')">X
      </f:facet>
      <h:form>
      <a4j:outputPanel id="panelH_edit_one_row" layout="block" >
      data from the server
      </a4j:outputPanel>
      <rich:spacer height="5"/>
      <h:panelGrid columns="1">
      <a4j:commandButton value="save"
      action="#{configurationInventory.saveChange}"
      onclick="javascript:Richfaces.hideModalPanel('editPanelH');"
      styleClass="my-rich-button-pannel">
      </a4j:commandButton>

      </h:panelGrid>
      </h:form>


      </rich:modalPanel>