ICEfaces
  1. ICEfaces
  2. ICE-5524

ICEfaces 2.0 iceSubmit for onsubmit handler

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Alpha2
    • Fix Version/s: 2.0-Alpha3, 2.0.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      ICEfaces 2.0

      Description


      The iceSubmit JavaScript call currently is not exposed in a way that is easily used in a form onsubmit handler. This should be provided to support server-side form decoration.

        Issue Links

          Activity

          Hide
          Mircea Toma added a comment -

          Introduced system event listener that reconfigures form elements rendered by HtmlForm components to submit their data through AJAX requests.

          Show
          Mircea Toma added a comment - Introduced system event listener that reconfigures form elements rendered by HtmlForm components to submit their data through AJAX requests.
          Hide
          Ted Goddard added a comment -

          Since this is operating on the form, can it just be a child of the form? The addComponentResource is currently running into difficulty with pages that do not use <h:body>.

          Also, if a form is added to the page, this will always result in a complete DOM update (if the script element is an immediate child of the body).

          We should also consider the performance aspect of having a single SystemEventListener and dispatching directly.

          Show
          Ted Goddard added a comment - Since this is operating on the form, can it just be a child of the form? The addComponentResource is currently running into difficulty with pages that do not use <h:body>. Also, if a form is added to the page, this will always result in a complete DOM update (if the script element is an immediate child of the body). We should also consider the performance aspect of having a single SystemEventListener and dispatching directly.
          Hide
          Mircea Toma added a comment -

          The script output component is now added as form child instead of component resource. The script element that captures the form submit is now rendered inside the form element. The Javascript code is thus simplified since the form submit capturing is re-applied automatically when form element is updated.

          Show
          Mircea Toma added a comment - The script output component is now added as form child instead of component resource. The script element that captures the form submit is now rendered inside the form element. The Javascript code is thus simplified since the form submit capturing is re-applied automatically when form element is updated.

            People

            • Assignee:
              Mircea Toma
              Reporter:
              Ted Goddard
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: