ICEfaces
  1. ICEfaces
  2. ICE-11259

ace:tabSet - Script error 'Cannot read property 'cfg' of null'

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.BETA
    • Fix Version/s: 4.2
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Chrome, IE11

      Description

      With the changes from ICE-11125, there is an issue now seen when changing tabs that include an ace:dataTable with paginator=true. The following script error is thrown and causes the application to become unresponsive:

      Uncaught TypeError: Cannot read property 'cfg' of null
          at HTMLDivElement.<anonymous> (ace-tabset.uncompressed.js.jsf?ln=icefaces.ace&v=4_2_0_170216:8652)
          at Function.each (jquery.js.jsf?ln=icefaces.ace&v=4_2_0_170216:384)
          at jQuery.fn.init.each (jquery.js.jsf?ln=icefaces.ace&v=4_2_0_170216:137)
          at Object.resizeTables (ace-tabset.uncompressed.js.jsf?ln=icefaces.ace&v=4_2_0_170216:8648)
          at doOnSuccess (ace-tabset.uncompressed.js.jsf?ln=icefaces.ace&v=4_2_0_170216:7923)
          at ace-tabset.uncompressed.js.jsf?ln=icefaces.ace&v=4_2_0_170216:7931
          at sendEvent (jsf.js.jsf?ln=javax.faces&stage=Development&v=4_2_0_170216:2075)
          at Object.response (jsf.js.jsf?ln=javax.faces&stage=Development&v=4_2_0_170216:2981)
          at Object.onComplete (jsf.js.jsf?ln=javax.faces&stage=Development&v=4_2_0_170216:1860)
          at XMLHttpRequest.AjaxEngine.req.xmlReq.onreadystatechange (jsf.js.jsf?ln=javax.faces&stage=Development&v=4_2_0_170216:1841)

        Activity

        Hide
        Arran Mccullough added a comment -

        Attached test case to reproduce the issue.

        Steps:

        • Load welcomeICEfaces.jsf
        • Open browser console.
        • Click 'Tab Two' tab pane, error is thrown in the logs.

        Note: For me to reproduce this I would need to load the application in two different browsers. For example:

        • Load app in Chrome, do the tests, no errors.
        • Then load the app in IE11, do the same test, I get the error.
        • If I do the reverse (load in IE first then Chrome) I get the same results.
        • Additionally if I load the app in Firefox (no issues) and then both IE11 and Chrome, both will throw the error.
        Show
        Arran Mccullough added a comment - Attached test case to reproduce the issue. Steps: Load welcomeICEfaces.jsf Open browser console. Click 'Tab Two' tab pane, error is thrown in the logs. Note: For me to reproduce this I would need to load the application in two different browsers. For example: Load app in Chrome, do the tests, no errors. Then load the app in IE11, do the same test, I get the error. If I do the reverse (load in IE first then Chrome) I get the same results. Additionally if I load the app in Firefox (no issues) and then both IE11 and Chrome, both will throw the error.
        Hide
        Arturo Zambrano added a comment -

        r50940: fix to prevent NPE error when resizing ace:dataTable paginator

        Show
        Arturo Zambrano added a comment - r50940: fix to prevent NPE error when resizing ace:dataTable paginator

          People

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

            Dates

            • Created:
              Updated:
              Resolved: