ICEfaces
  1. ICEfaces
  2. ICE-6408

fileEntry not working with compat due to javascript problem fileDiv.childNodes[1] is null

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      jsf2.0 ICEfaces2, ACE, compat

      Description

      fileEntry will not complete. No server log problems but javascript error on line 251 of fileEntry.js

      where fileDiv.childNodes[1] is undefined.

        Activity

        Hide
        Judy Guglielmin added a comment -

        maven archetype example which exhibits this behaviour.....simply use >mvn package to build the application for tomcat deployment

        Show
        Judy Guglielmin added a comment - maven archetype example which exhibits this behaviour.....simply use >mvn package to build the application for tomcat deployment
        Hide
        Mark Collette added a comment -

        When compat is included, prototype modifies built-in javascript objects. In this case, it added functions to Array. The fileEntry code was iterating over the DIV elements in an array, when it came across these functions, which caused exceptions, which terminated the file upload. Now we're iterating over the Array differently, so that the presence of the functions won't cause problems.

        Subversion 23654

        Show
        Mark Collette added a comment - When compat is included, prototype modifies built-in javascript objects. In this case, it added functions to Array. The fileEntry code was iterating over the DIV elements in an array, when it came across these functions, which caused exceptions, which terminated the file upload. Now we're iterating over the Array differently, so that the presence of the functions won't cause problems. Subversion 23654

          People

          • Assignee:
            Mark Collette
            Reporter:
            Judy Guglielmin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: