ICEfaces
  1. ICEfaces
  2. ICE-5600

preUpload submit does not occur when running in synchronousUpdate mode

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2-EE-GA
    • Fix Version/s: 1.8.3, 1.8.2-EE-GA_P02
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      -
    • Workaround Exists:
      Yes
    • Workaround Description:
      Apply any application logic for pre-upload when postUpload equals false

      Description

      When using the inputFile's autoUpload and submitOnUpload="preAndPostUpload" features along with synchronous mode set to true, the preUpload submit does not occur. The attached test case demonstrates that both pre and post lifecycles fire but the preUpload value on the first iteration is false. The second iteration is correct with postUpload set to true.

        Activity

        Tyler Johnson created issue -
        Tyler Johnson made changes -
        Field Original Value New Value
        Salesforce Case [5007000000As4KK]
        Tyler Johnson made changes -
        Attachment sc9081.war [ 12288 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #23044 Fri Nov 05 13:42:54 MDT 2010 mark.collette ICE-4397 : JavaScript errors when using submitOnUpload
        ICE-5600 : preUpload submit does not occur when running in synchronousUpdate mode
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/inputfile/InputFileRenderer.java
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/inputfile/InputFile.java
        Hide
        Mark Collette added a comment -

        O'Reilly JavaScript: The Definitive Guide v1.2 book states the following in regards to form.submit():
        The one important difference between the submit() method and form submission by the user is that the onsubmit() event handler is not invoked when submit() is called. If you use onsubmit() to perform input validation, for example, you'll have to do that validation explicitly before calling submit().

        Basically, we need our autoUpload code to directly invoke our onsubmit code before calling submit.

        Show
        Mark Collette added a comment - O'Reilly JavaScript: The Definitive Guide v1.2 book states the following in regards to form.submit(): The one important difference between the submit() method and form submission by the user is that the onsubmit() event handler is not invoked when submit() is called. If you use onsubmit() to perform input validation, for example, you'll have to do that validation explicitly before calling submit(). Basically, we need our autoUpload code to directly invoke our onsubmit code before calling submit.
        Hide
        Mark Collette added a comment -

        Fixed while working on ICE-4397.

        Show
        Mark Collette added a comment - Fixed while working on ICE-4397 .
        Mark Collette made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.8.2-EE-GA_P02 [ 10226 ]
        Fix Version/s 1.8.3 [ 10211 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Tyler Johnson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: