ICEfaces
  1. ICEfaces
  2. ICE-4397

JavaScript errors when using submitOnUpload

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8.3, 1.8.2-EE-GA_P02
    • Component/s: None
    • Labels:
      None
    • Environment:
      JBoss AS 5.0.1.GA, IE7, FF3

      Description

      Client-side JavaScript code which handles submitOnUpload=preUpload, submitOnUpload=postUpload and submitOnUpload=preAndPostUpload is not reliable.

      In particular, it assumes that IFRAME content is loaded within 300 ms which cannot be guaranteed in a networked environment.

      If IFRAME is not loaded fast enough, both IE7 and FF3 display a JavaScript error:

      frame.document.getElementsByTagName("form")[0] is undefined

      After such error happens, submitOnUpload feature ceases to work until page is refreshed.

      Possibly related JIRA issues and forum posts are:
      ICE-3144
      ICE-4246
      http://www.icefaces.org/JForum/posts/list/12180.page

        Activity

        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

          People

          • Assignee:
            Mark Collette
            Reporter:
            User Ryagin
          • Votes:
            8 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: