尝试使用SmartGWT但是收到错误:“无法读取未定义的属性’setAutoDraw’”

我正在尝试将SmartGWT引入我现有的GWT应用程序。

我到目前为止所做的是放置

 

到我的client.gwt.xmlmodule.gwt.xml文件中。 如果我运行该应用程序,编译似乎工作。 我没有从代码服务器收到任何错误 – 只是关于弃用类的一些警告,但没有别的。

但是,如果我只是导入这样的SmartGWT按钮:

 public LandingPageViewImpl() { initWidget(uiBinder.createAndBindUi(this)); AppPlaceHistoryMapper historyMapper = Util.placeHistoryMapper; final LoginPlace loginPlace = new LoginPlace(); this.aLogin.setHref("#" + historyMapper.getToken(loginPlace)); // This is "com.smartgwt.client.widgets.Button" Button btn = new Button(); } 

我的申请中断了,我得到了

引起:com.google.gwt.core.client.JavaScriptException:(TypeError): Cannot read property 'setAutoDraw' of undefined

我很确定我错过了什么,但问题是什么。 我使用的是最新的SmartGWT版本v5.0-p20160115

  com.isomorphic.smartgwt.lgpl smartgwt-lgpl 5.0-p20160115    com.isomorphic isc-maven-plugin 1.1.1  

安装SmartGWT后

 mvn com.isomorphic:isc-maven-plugin:install -Dproduct=SMARTGWT -Dlicense=LGPL -DbuildNumber=5.0p 

除了最新的GWT版本v2.8.0-beta1

  com.google.gwt gwt 2.8.0-beta1 pom import