Wicket
  1. Wicket
  2. WICKET-4881

IE 8 : error when handling Wicket Ajax Response

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.2.0, 6.3.0
    • Fix Version/s: 6.4.0
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      Internet Explorer 8, Windows 7 64 bits

      Description

      I have a problem with Wicket 6.2.0/6.3.0 and IE (this works perfectly with Chrome or Firefox). I have a list of items, with Ajax links in the list. The response to the Ajax link modifies a panel from the page, and redraws the list (its container).

      IE does at least some of the changes correctly, but outputs an error, and it seems that subsequent Ajax request fail:

      (... some UI code ...)
      (... Jquery and Wicket ajax references ...)
      <script type="text/javascript" id="wicket-ajax-base-url">
      /<![CDATA[/
      Wicket.Ajax.baseUrl="other/bictables/list";
      /]]>/
      </script>
      </head>]]></header-contribution><evaluate><![CDATA[Wicket.Ajax.ajax(

      {"u":"./list?3-1.IBehaviorListener.0-interaction-view-toolbar-AMEND","e":"click","c":"AMENDea"}

      );]]></evaluate><evaluate><![CDATA[Wicket.Ajax.ajax(

      {"u":"./list?3-1.IBehaviorListener.0-interaction-view-toolbar-RETURN","e":"click","c":"RETURNec"}

      );]]></evaluate><evaluate><![CDATA[Wicket.Ajax.ajax(

      {"u":"./list?3-1.IBehaviorListener.0-entities-entitiesList-bictables-0-actions-view","e":"click","c":"viewf2"}

      );]]></evaluate><evaluate><![CDATA[Wicket.Ajax.ajax(

      {"u":"./list?3-1.IBehaviorListener.0-entities-entitiesList-bictables-0-actions-edit","e":"click","c":"editf3"}

      );]]></evaluate><evaluate><![CDATA[Wicket.Ajax.ajax(

      {"u":"./list?3-1.IBehaviorListener.0-entities-entitiesList-bictables-0-reorder-down","e":"click","c":"downf4"}

      );]]></evaluate><evaluate><![CDATA[Wicket.Ajax.ajax(

      {"u":"./list?3-1.IBehaviorListener.0-entities-entitiesList-bictables-1-actions-view","e":"click","c":"viewf5"}

      );]]></evaluate><evaluate><![CDATA[Wicket.Ajax.ajax(

      {"u":"./list?3-1.IBehaviorListener.0-entities-entitiesList-bictables-1-actions-edit","e":"click","c":"editf6"}

      );]]></evaluate><evaluate><![CDATA[Wicket.Ajax.ajax(

      {"u":"./list?3-1.IBehaviorListener.0-entities-entitiesList-bictables-1-reorder-up","e":"click","c":"upf7"}

      );]]></evaluate><evaluate><![CDATA[Wicket.Ajax.ajax(

      {"u":"./list?3-1.IBehaviorListener.0-entities-entitiesList-bictables-1-reorder-down","e":"click","c":"downf8"}

      );]]></evaluate><evaluate><![CDATA[Wicket.Ajax.ajax(

      {"u":"./list?3-1.IBehaviorListener.0-entities-entitiesList-bictables-2-actions-view","e":"click","c":"viewf9"}

      );]]></evaluate><evaluate><![CDATA[Wicket.Ajax.ajax(

      {"u":"./list?3-1.IBehaviorListener.0-entities-entitiesList-bictables-2-actions-edit","e":"click","c":"editfa"}

      );]]>
      (... lots of similar code from the table ...)
      <evaluate><![CDATA[Wicket.Ajax.ajax(

      {"u":"./list?3-1.IBehaviorListener.0-entities-entitiesList-bictables-17-actions-edit","e":"click","c":"edit136"}

      );]]></evaluate><evaluate><![CDATA[Wicket.Ajax.ajax(

      {"u":"./list?3-1.IBehaviorListener.0-entities-entitiesList-bictables-17-reorder-up","e":"click","c":"up137"}

      );]]></evaluate></ajax-response>
      INFO: returned focused element: http://localhost:8080/payments/app/other/bictables/list?3#
      INFO: returned focused element: null
      ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: [object Error], text: Wicket.Ajax.ajax(

      {"u":"./list?3-1.IBehaviorListener.0-entities-entitiesList-bictables-7-actions-view","e":"click","c":"view10d"}

      );
      ERROR: FunctionsExecuter.processNext: [object Error]
      ERROR: Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: [object Error], text: Wicket.Ajax.ajax(

      {"u":"./list?2-4.IBehaviorListener.0-entities-entitiesList-bictables-7-actions- view","e":"click","c":"view2cb"}

      );
      ERROR: FunctionsExecuter.processNext: [object Error]

      all subsequent Ajax requests lead to :

      INFO: Channel '0' is busy - scheduling the callback to be executed when the previous request finish

      Is this a bug in Wicket, in IE? Any way to circumvent it if it's in IE?

      1. wicket_bug_report.7z
        35 kB
        Frédéric Donckels
      2. wicket_bug_report.zip
        56 kB
        Andrea Del Bene
      3. WICKET-4881.patch
        1 kB
        Martin Grigorov
      4. WICKET-4881-avoid-recursion.patch
        5 kB
        Tobias Haupt

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Martin Grigorov
              Reporter:
              Frédéric Donckels
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development