ICEfaces
  1. ICEfaces
  2. ICE-1305

Intercept form submits and replace with iceSubmits

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6DR#2
    • Fix Version/s: 1.6DR#3, 1.6
    • Component/s: Bridge
    • Labels:
      None
    • Environment:
      All

      Description

      Some third party components use there own java script to submit to the server. (Calling form.submit() directly)

      Intercept these calls, and perform an iceSubmit instead.

      Example Code.

              window.onLoad(function() {
          $enumerate(document.forms).each(function(form) {
              form.submit = function() {
                  iceSubmit(form, null, new Object());
              };
              form.onsubmit = function() {
                  iceSubmit(form, null, new Object());
              };
          });
      });

        Issue Links

          Activity

          Repository Revision Date User Message
          ICEsoft Public SVN Repository #13765 Thu May 03 11:53:56 MDT 2007 mircea.toma Refactor how and when form submits are redirected to avoid memory leaks -- ICE-1305.
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/lib/element.js
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/src/application.js
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/src/submit.js
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #13628 Fri Apr 20 17:23:48 MDT 2007 mircea.toma Use previously registered function -- ICE-1305.
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/src/submit.js
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #13430 Tue Mar 27 16:58:17 MDT 2007 mircea.toma Force MyFaces to inject the needed Javascript on each submit. Rewrite 'submit' and 'onsubmit' when the browser document is updated -- ICE-1305.
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/src/application.js
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/BridgeFacesContext.java
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/lib/event.js
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/src/submit.js
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #13376 Fri Mar 09 11:30:47 MST 2007 mircea.toma Capture form submits and send them as XMLHttpRequests. Issue ICE-1305.
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/bridge/src/submit.js

            People

            • Assignee:
              Unassigned
              Reporter:
              Rob Mayhew
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: