It is very easy to successfully build the gwtext application from maven in Ubuntu. Build a gwt framework with maven to generate a project file for eclipse for easy import, and then use eclipse for editing. Download extjs2.0.2 and upload the main file to the public/js/ext directory. Add the repository and dependency of gwtext to pom. xml, and add inherits, stylesheet, and
It is very easy to successfully build the gwtext application from maven in Ubuntu. Build a gwt framework with maven to generate a project file for eclipse for easy import, and then use eclipse for editing. Download extjs2.0.2 and upload the main file to the public/js/ext directory. Add the repository and dependency of gwtext to pom. xml. Add inherits, stylesheet and scripts to gwt. xml!
Run: Run pom. xml to get webcontent under target, add it to Tomcat 7 in eclipse, and run the server, you can open index.html to get the result. [6688 e-commerce website www.6688.cc]
Prerequisites: eclipse helios, tomcat7, and maven3.0. gwt uses 1.5.3 and extjs uses 2.0.2.
1, mvn archetype: generate, choose maven gwt archetype.
2, cd {$ artifactId}, mvn eclipse: eclipse
3. import project in eclipse.
3.1, download extjs2.0.2, copy adapter, resources and ext-all.js to public/js/ext folder.
3.2, add following items in pom. xml:
Gwtext
Http://www.gwt-ext.com/maven2/
Com. gwtext
Gwtext
2.0.5
3.3, add following items in gwt. xml:
3.4, then you can modify your $ {entryPoint}. java for testing:
Panel p = new Panel ();
P. setTitle ("main ");
RootPanel. get (). add (p );
Run pom. xml as maven package, war folder get generated in target, add it to your tomcat7 in eclipse, start tomcat7, run index.html on server, done!
References:
Http://gwt-ext.com/wiki/index.php? Title = Tutorial: Introduction_to_GWT-Ext_2.0 # Configuring_Your_Application
Add gwtext to gwt.
Http://code.google.com/p/gwt-ext/issues/detail? Id = 180
Add gwt to maven.
Note that the dynamic web module must be added to the project during the process. Otherwise, it cannot be added to tomcat.