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

        Judy Guglielmin created issue -
        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
        Judy Guglielmin made changes -
        Field Original Value New Value
        Attachment icefaces-all-webapp.zip [ 12777 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #23654 Mon Dec 20 15:10:35 MST 2010 mark.collette ICE-6408 : fileEntry not working with compat due to javascript problem fileDiv.childNodes[1] is null
        Files Changed
        Commit graph MODIFY /icefaces2/trunk/icefaces/ace/component/resources/org.icefaces.component.fileentry/fileEntry.js
        Arran Mccullough made changes -
        Salesforce Case [5007000000E7bWd]
        Ken Fyten made changes -
        Assignee Mark Collette [ mark.collette ]
        Ken Fyten made changes -
        Fix Version/s 2.0.0 [ 10230 ]
        Ken Fyten made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        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
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24390 Thu Apr 14 13:17:29 MDT 2011 arran.mccullough ICE-6408: fileEntry not working with compat due to javascript problem fileDiv.childNodes[1] is null
        Files Changed
        Commit graph MODIFY /icefaces2/branches/ICE-6403/icefaces/ace/component/resources/org.icefaces.component.fileentry/fileEntry.js

          People

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

            Dates

            • Created:
              Updated:
              Resolved: