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

          Ted Goddard created issue -
          Ted Goddard made changes -
          Field Original Value New Value
          Salesforce Case []
          Fix Version/s 2.0-Alpha3 [ 10032 ]
          Assignee Mircea Toma [ mircea.toma ]
          Mircea Toma made changes -
          Link This issue duplicates ICE-5517 [ ICE-5517 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #21070 Wed Mar 24 17:29:32 MDT 2010 mircea.toma ICE-5524, ICE-5517 Introduce system event listner that reconfigures rendered forms to submit their data through AJAX requests.
          Files Changed
          Commit graph MODIFY /icefaces/scratchpads/glimmer/core/src/main/resources/META-INF/faces-config.xml
          Commit graph MODIFY /icefaces/scratchpads/glimmer/core/src/main/javascript/application.js
          Commit graph ADD /icefaces/scratchpads/glimmer/core/src/main/java/org/icefaces/event/RedirectSubmit.java
          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.
          Mircea Toma made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          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.
          Mircea Toma made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #21092 Fri Mar 26 11:31:22 MDT 2010 mircea.toma ICE-5524, ICE-5517 Add script component as form child instead of component resource. Simplify Javascript.
          Files Changed
          Commit graph MODIFY /icefaces/scratchpads/glimmer/core/src/main/javascript/application.js
          Commit graph MODIFY /icefaces/scratchpads/glimmer/core/src/main/java/org/icefaces/event/RedirectSubmit.java
          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.
          Mircea Toma made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #21102 Mon Mar 29 14:41:43 MDT 2010 mircea.toma ICE-5524 Assign unique ID for the output component. Duplicate IDs are assigned when components are added dynamically.
          Files Changed
          Commit graph MODIFY /icefaces/scratchpads/glimmer/core/src/main/java/org/icefaces/event/RedirectSubmit.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #21103 Mon Mar 29 14:43:40 MDT 2010 mircea.toma ICE-5524 Stop throwing exceptions when value lookup doesn't define the property name.
          Files Changed
          Commit graph MODIFY /icefaces/scratchpads/glimmer/core/src/main/java/org/icefaces/application/WindowELResolver.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #21106 Mon Mar 29 16:42:58 MDT 2010 mircea.toma ICE-5524, ICE-5517 Try using bridge configuration only after it was defined.
          Files Changed
          Commit graph MODIFY /icefaces/scratchpads/glimmer/core/src/main/javascript/application.js
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #21109 Tue Mar 30 10:48:15 MDT 2010 mircea.toma ICE-5524, ICE-5517 Add ice.window input to all forms so that window scope works even when using non-ajax form submits.
          Files Changed
          Commit graph MODIFY /icefaces/scratchpads/glimmer/core/src/main/javascript/application.js
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #21110 Tue Mar 30 11:04:34 MDT 2010 mircea.toma ICE-5524, ICE-5517 Add ice.window input to all forms so that window scope works even when using non-ajax form submits.
          Files Changed
          Commit graph MODIFY /icefaces/scratchpads/glimmer/core/src/main/javascript/application.js
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #21123 Wed Mar 31 13:19:50 MDT 2010 ted.goddard applying only to ICEfaces pages (ICE-5524)
          Files Changed
          Commit graph MODIFY /icefaces/scratchpads/glimmer/core/src/main/java/org/icefaces/event/RedirectSubmit.java
          Ken Fyten made changes -
          Fix Version/s 2.0.0 [ 10230 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: