2 Replies Latest reply on Sep 27, 2007 3:09 PM by rebeccapeltz

    stop onload event from firing after a4j:commandButton proces

    rebeccapeltz

       

      <body onload="init();">


      <a4j:commandButton
      type="submit"
      value="Update"
      reRender="individualRateFormat#{selectedService.sequence}"
      limitToList="true"
      action="#{buildTemplate.updateServiceAction}"
      onclick ="setHiddenParam('#{selectedService.sequence}')"/>

      The ajax seems to be updating just the panel that I named above, but it also ends up call the javascript init() function indicating the onload event is triggered.
      Is there any way to suppress the triggering of the onload event?

      Thanks