我发现示例SmartGWT应用程序的浏览器不会抛出JavaScript异常。但同样是由一个普通的GWT应用程序引发的。
我所做的就是创建了一个GWT测试应用程序并制作了一个抛出nullpointer异常的场景。 Firefox / Chrome / IE在浏览器控制台中引发了异常。
例如,
Label testLabel = null;
testLabel.setText("Welcome")
使用相同的应用程序,我创建了SmartGWT小部件并创建了一个方案来抛出一个nullpointer异常,但是没有抛出异常到浏览器控制台。
例如,
com.smartgwt.client.widgets.Window testWindow = null;
testWindow.setTitle("Welcome....");
我的假设是任何未捕获的异常都应该移交给浏览器。想知道是否有人知道有关它的更多细节?
答案 0 :(得分:0)
如果您使用的是2.4以下的版本。固定在2.4
是的..这种哇哇行为已经存在但是已经修复了。
This has been resolved for a while now on mainline. Please try the latest nighty build from http://smartclient.com/builds
The fix will be in the soon to be released Smart GWT 2.4.
参考