ICEfaces
  1. ICEfaces
  2. ICE-9995

JavaScript error in notifyAllOnElementUpdateCallbacks function

    Details

    • Assignee Priority:
      P1
    • Support Case References:
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      Setting the following context param helps the issue but at the risk of performance:

      <context-param>
      <param-name>org.icefaces.clientSideElementUpdateDetermination</param-name>
      <param-value>true</param-value>
      </context-param>
      Show
      Setting the following context param helps the issue but at the risk of performance: <context-param> <param-name>org.icefaces.clientSideElementUpdateDetermination</param-name> <param-value>true</param-value> </context-param>

      Description

      The following issue has been seen by one of our customers:

      "one of our pages is getting javascript error Cannot read property 'data-onElementUpdate' on undefined during an ajax request. I have debugged the page and found the problem is in namespace.notifyAllOnElementUpdateCallbacks function. The error is caused in the loop within this function because the ice.onElementUpdate function for the <ace:dateTimeEntry> component which is on this page removes the dateTimeEntry input field and associated calendar image from the DOM which also removes two tags from the elements array within notifyAllOnElementUpdateCallbacks. When the index var i of the for loop gets to the second from last entry, then the var e will be undefined (since max loop index is based on original size of elements array, defined in var l, but size of elements is now reduced by 2)."

        Activity

        Arran Mccullough created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Assignee Mircea Toma [ mircea.toma ]
        Ken Fyten made changes -
        Assignee Mircea Toma [ mircea.toma ] Arturo Zambrano [ artzambrano ]
        Fix Version/s EE-3.3.0.GA_P02 [ 11371 ]
        Fix Version/s 4.0 [ 11382 ]
        Assignee Priority P1 [ 10010 ]
        Arturo Zambrano made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: