java - Trying to use SmartGWT but getting errors: "Cannot read property 'setAutoDraw' of undefined" -


i trying introduce smartgwt existing gwt application.

what did far placing

<inherits name="com.smartgwt.smartgwt"/> 

into client.gwt.xml , module.gwt.xml files. if run application, compilation appears work. not getting errors code server - few warnings deprecated classes nothing else.

however, if import smartgwt button this:

public landingpageviewimpl() {     initwidget(uibinder.createandbindui(this));     appplacehistorymapper historymapper = util.placehistorymapper;      final loginplace loginplace = new loginplace();     this.alogin.sethref("#" + historymapper.gettoken(loginplace));      // "com.smartgwt.client.widgets.button"     button btn = new button(); } 

my application breaks , getting

caused by: com.google.gwt.core.client.javascriptexception: (typeerror) : cannot read property 'setautodraw' of undefined

i quite sure i'm missing question what. using latest smartgwt version v5.0-p20160115

<dependency>     <groupid>com.isomorphic.smartgwt.lgpl</groupid>     <artifactid>smartgwt-lgpl</artifactid>     <version>5.0-p20160115</version> </dependency>  <!-- required smart gwt --> <dependency>     <groupid>com.isomorphic</groupid>     <artifactid>isc-maven-plugin</artifactid>     <version>1.1.1</version> </dependency> 

after installing smartgwt

mvn com.isomorphic:isc-maven-plugin:install -dproduct=smartgwt -dlicense=lgpl -dbuildnumber=5.0p 

besides latest gwt version v2.8.0-beta1

<dependency>     <groupid>com.google.gwt</groupid>     <artifactid>gwt</artifactid>     <version>2.8.0-beta1</version>     <type>pom</type>     <scope>import</scope> </dependency> 


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -