ICEfaces
  1. ICEfaces
  2. ICE-7902

REGRESSION: ice.submit() JavaScript call throws JavaScript errors in FF

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0.1, EE-3.0.0.GA
    • Component/s: Bridge
    • Labels:
      None
    • Environment:
      icefaces-3.0.x.maintenance branch, svn rvn# 28336, Firefox 11

      Description

      When running the showcase application, clicking on standard components that are configured to use ice core:singleSubmit is throwing JavaScript errors:

      For example, under the ace:accordion - Overview demo, if you select a checkbox in the first panel, it will log the following JS error

      Timestamp: 12-03-14 5:00:37 PM
      Error: arguments.callee.caller.caller is null
      Source File: http://localhost:8080/showcase/javax.faces.resource/bridge.js.jsf?v=1675460918
      Line: 2351


        Activity

        Hide
        Ted Goddard added a comment -

        This is reproducible on the trunk as well.

        Show
        Ted Goddard added a comment - This is reproducible on the trunk as well.
        Hide
        Ted Goddard added a comment -

        The general fix is to test using two different stack depths:

        + var maybeCaller = null;
        + maybeCaller = arguments.callee.caller.caller;
        + if (null == maybeCaller)

        { + maybeCaller = arguments.callee.caller; + }

        + var maybeEvent = maybeCaller.arguments[0];

        Show
        Ted Goddard added a comment - The general fix is to test using two different stack depths: + var maybeCaller = null; + maybeCaller = arguments.callee.caller.caller; + if (null == maybeCaller) { + maybeCaller = arguments.callee.caller; + } + var maybeEvent = maybeCaller.arguments [0] ;

          People

          • Assignee:
            Ted Goddard
            Reporter:
            Ken Fyten
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: