gwt

SmartGWT

# install gwt
wget http://smartgwt.googlecode.com/files/smartgwt-2.0.zip -P /tmp
unzip /tmp/smartgwt-2.0.zip -d /usr/share/
 
 
 
 
# create default GWT Project
File > New > Web Application Project
 
Project name:
Smart
 
Package:
smart
 
[ Finish ]
 
 
# add smartGWT
 
Smart > smart > Smart.gwt.xml add to module section:
<inherits name='com.smartgwt.SmartGwt'/>
 
Smart > war > Smart.html add to head section BEVORE first script section
<script>var isomorphicDir = "smart/sc/"</script>
 
# add smartgwt libs
Project > Properties
Java Build Path > Libraries
Add External Jar
/usr

Install Eclipse

# install eclipse
apt-get install eclipse -y
 
Help > Install New Software
Work with: http://download.eclipse.org/releases/galileo
[ Add ]
 
# install eclipse gwt plugin
Help > Install New Software
Work with: http://dl.google.com/eclipse/plugin/3.5
[ Add ]
[ Next ]
 
 
# disable editor line break after 80 char
Project > Properties
Configure Worksapece Settings
[ Edit ]
Line Wraping
Maximum line widht: 240
 
# Links
http://code.google.com/intl/de/eclipse/docs/install-eclipse-3.5.html

Create GWT-Ext project under NetBeans

copy "js" dir from gwt-ext archive int project web folder
 
Main.gwt.xml
add
        <inherits name="com.gwtext.GwtExt"/>
 
 
welcomeGWT.html
add
        <link rel="stylesheet" type="text/css" href="js/ext/resources/css/ext-all.css" />
        <link id="theme" rel="stylesheet" type="text/css" href="js/ext/resources/css/xtheme-silverCherry.css"/>
        <script type="text/javascript" src="js/ext/adapter/yui/yui-utilities.js"></script>
        <script type="text/javascript" src="js/ext/adapter/yui/ext-yui-adapter.js"></script>
        <script type="text/javascript" src="js/ext/ext-al

Install Google Web Toolkit

#!/bin/bash
 
#URL=http://google-web-toolkit.googlecode.com/files/gwt-linux-1.7.1.tar.bz2
URL=http://google-web-toolkit.googlecode.com/files/gwt-2.0.0.zip
 
# download
wget ${URL} -P /tmp
 
# install
unzip /tmp/gwt-*.zip -d /tmp
rm /tmp/gwt-*.zip
sudo mv /tmp/gwt-* /usr/share
 
# Links
http://code.google.com/p/google-web-toolkit/

Create GWT MySQLConn project under Netbeans

# HowTo
1. install Netbeans: http://www.panticz.de/install_netbeans
1.1 install http://www.panticz.de/install-GWT4NB
2. install GWT: http://www.panticz.de/install_gwt
3. install MySQL driver: http://www.panticz.de/install_mysql_driver
4.

GWT + MySQL + Netbeans Demo

# INFO
url : jdbc:mysql://localhost:3306/Bible
user: gwt-examples
pass: password
 
# create database and user
mysql -u root -p
create database Bible;
CREATE USER 'gwt-examples' IDENTIFIED BY 'password';
grant all on Bible.* to 'gwt-examples'@'%' identified by "password";
#grant all on Bible.* to 'gwt-examples'@'192.168.1.10' identified by "password";
#grant all on Bible.* to 'gwt-examples'@'localhost' identified by "password";
commit;
quit;
 
# get gwt examples 
cd ${HOME}
svn checkout http://gwt-examples.googlecode.com/svn/trunk/ gwt-examples
 
# fill database
wget http://ken

Google Web Toolkit with Netbeans

# install gwt plugin in netbeans
NETBEANS > Tools > Plugins > Available plugins > GWT4NB > Install
 
# test, create new projects
export GWT_HOME=/opt/gwt-linux
cd $GWT_HOME
./applicationCreator -out $HOME/GWT-Sample org.kamal.hello.client.HelloWorld
 /opt/gwt-linux/applicationCreator -eclipse MyProject com.mycompany.client.MyApplication
 
# rpc service demo
public void onModuleLoad() {
  RootPanel.get().add(new DBQueryUsageExample());
}
 
# LINKS
http://www.netbeans.org/kb/60/web/quickstart-webapps-gwt.html
http://www.gwt-ext.com/demo/ - GWT-Ext Showcase
http://gwt.google.com/sam

Do you like this page? Then support it. Please click the AD below and visit the sponsor. Thank you!

Syndicate content