Wicket.Ajax.Call.failure:错误在解析响应:所需的对象 [英] Wicket.Ajax.Call.failure: Error while parsing response: Object required
问题描述
我只花了几个小时我的生活调试这个问题。我记录在这里的其他人。
I just spent several hours of my life debugging this problem. I'm documenting it here for others.
问:
我收到以下错误,当我尝试点击一个 AjaxLink
在Internet Explorer中:
I'm getting the following error when I try to click on an AjaxLink
in Internet Explorer:
检票:ERROR:Wicket.Ajax.Call.failure:错误在解析响应:所需的对象
它工作正常,在其他浏览器;只是IE被捣毁。
It works fine in all other browsers; just IE is busted.
推荐答案
检查以确保您的HTML是100%的语法正确。 Ajax响应返回到 CDATA
部分内的浏览器,如果有效载荷不能很好地形成,IE有时会窒息。
Check to make sure that your HTML is 100% syntactically correct. Ajax responses are returned to the browser inside a CDATA
section, and if the payload is not well-formed, IE will sometimes choke.
在我来说,我忘了关闭<链接>
标记中的< HEAD>
部分。简单地关闭该链接标签变得与众不同。
In my case I neglected to close a <link>
tag in the <head>
section. Simply closing that link tag made all the difference.
另外:如果你曾经遇到一个强硬到解决问题,检票,这是一个好主意,以创建一个快速入门项目重现您的问题。它可以是一个大量的工作,熬下来,但这样做,你经常会发现问题的根源。
Aside: if you ever come across a tough-to-solve problem in Wicket, it's a good idea to create a quickstart project that reproduces your issue. It can be a lot of work to boil things down, but in doing so you often find the source of the problem.
这篇关于Wicket.Ajax.Call.failure:错误在解析响应:所需的对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!