在使用 SmartGwt DataSource 取值時出現如下錯誤:
attempt to use DataSource of type iscServer without SmartClient Server option. Please either set clientOnly: true for one-time fetch against dataURL/testFileName or download the edition with SmartClient Server.
這主要是混合了 SmartGwt LGPL 和 EE 這2個版本引起,經多次嘗試,解決方法如下:
1) 在 <projectname>.gwt.xml 配置文件中,將 <inherits name="com.smartgwt.SmartGwt"/>
改爲 <inherits name="com.smartgwtee.SmartGwtEE"/>
2) 刷新 Project>war目錄,將自動產生的<project name> 文件夾刪除。
重新run一下,應該就順利看到數據了。