4 Replies Latest reply on Jul 17, 2009 4:45 AM by ilya_shaikovsky

    global default for onclick and oncomplete in a4j:commandButt

    asookazian

      In pg. 276 of Seam Framework book by Yuan et al, the following xhtml code is discussed:

      <a4j:commandButton type="submit"
      value="Delete"
      reRender="fans"
      onclick="showWaitCursor()"
      oncomplete="restoreCursor()"
      action="#{manager.delete}"/>


      It would be nice if we could configure a4j:commandButton to have those two javascript functions for onclick and oncomplete events by default. That way we don't have to configure that for every instance of a4j:commandButton and the user experience is consistent.

      Is it possible to do this currently in RF 3.3.x or RF 4.x? thx.