<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3402813422384715463</id><updated>2024-08-29T14:43:32.521-07:00</updated><title type='text'>Technologies information</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://technoahead.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3402813422384715463/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://technoahead.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ankur</name><uri>http://www.blogger.com/profile/05045036074513957750</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3402813422384715463.post-4459732577753644848</id><published>2012-07-05T09:44:00.000-07:00</published><updated>2013-07-02T01:58:52.431-07:00</updated><title type='text'>Google Web Toolkit</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2&gt;



&lt;/h2&gt;
&lt;h2&gt;
&lt;/h2&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;a href=&quot;http://technoahead.blogspot.in/p/linux.html&quot;&gt;LINUX TUTORIALS&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;/li&gt;
&lt;li&gt;&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;http://technoahead.blogspot.in/p/vicidial-call-center-suite.html&quot;&gt;VICIDIAL CALL CENTRE SUITE &lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;/li&gt;
&lt;li&gt;&lt;h3 class=&quot;post-title entry-title&quot; itemprop=&quot;name&quot; style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;http://technoahead.blogspot.in/p/crm-tutorial.html&quot;&gt;CRM TUTORIALS&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;/li&gt;
&lt;li&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;http://technoahead.blogspot.in/p/birt.html&quot;&gt;Reporting Tools-&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; rel=&quot;nofollow&quot;&gt;BIRT(Business Intelligence Reporting System)&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;
&lt;/li&gt;
&lt;li&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;a href=&quot;http://technoahead.blogspot.in/p/itext.html&quot;&gt;For More Reporting Tools just like&lt;/a&gt;&lt;a href=&quot;http://www.blogger.com/null&quot; rel=&quot;nofollow&quot;&gt; itext&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;
&lt;h3 style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;u&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;ABOUT GWT&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
Google Web Toolkit (GWT) is an open source set of 
tools that allows web developers to create and maintain complex 
JavaScript front-end applications in Java. It is licensed under the 
Apache License version 2.0. The GWT’s mission statement focuses on 
radically improving the web experience for users, by enabling developers
 to use existing Java tools to build no-compromise AJAX for any modern 
browser.&lt;br /&gt;
Google is set to launch GWT 2.0 later this year. The 
progress of GWT has been slow but steady over the years. Let us explore 
the road traveled so far and what lies ahead.Google promises much more 
with the GWT 2.0 &lt;br /&gt;
GWT
 2.0 contains huge improvements, including dynamic script loading, a new
 catalog of compiler optimizations, and a new approach to hosted mode 
debugging that uses the native browser.Version 2.0 will bring GWT a huge
 step forward and boost performance for developers and clients. It is 
not official, but 2.0 maybe also brings a new XML based markup language 
to define the layout. My guess is that the syntax will be close to HTML.
 &lt;br /&gt;
&lt;br /&gt;
Google Web Toolkit (GWT), an open source software development 
framework that allows the programmer to write Java code, which then gets
 translated into AJAX code. More specifically, the GWT compiler converts
 the Java classes into browser-compliant HTML and JavaScript code.&lt;br /&gt;
It’s
 a tool that enables you to develop client-side code, working with Java,
 and compiling your code into JavaScript, which is then executed&lt;br /&gt;
at 
the client’s browser. The final product is a web application with almost
 desktopapplication levels of interactivity, which executes client-side 
with minimal needs of server-side code or interaction. Compiling into 
JavaScript provides an extra touch of speed, and the final code is 
optimized and as good, or better, than human written code. And, most 
important, you won’t need to worry about browser differences and quirks 
because GWT generates appropriate code for each specific browser.&lt;br /&gt;
&lt;h2&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3402813422384715463&quot; name=&quot;TOC-GWT-Architecture&quot;&gt;&lt;/a&gt;GWT Architecture&lt;/h2&gt;
&lt;img alt=&quot;&quot; src=&quot;javascript:void(0);&quot; /&gt;&lt;img alt=&quot;&quot; src=&quot;javascript:void(0);&quot; /&gt;&lt;br /&gt;
&lt;div style=&quot;display: block; text-align: left;&quot;&gt;
&lt;a href=&quot;https://sites.google.com/site/voipnotes/google-web-toolkit/archi_EN.png?attredirects=0&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://sites.google.com/site/voipnotes/_/rsrc/1301986687336/google-web-toolkit/archi_EN.png&quot; width=&quot;381&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h2&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3402813422384715463&quot; name=&quot;TOC-GWT-features&quot;&gt;&lt;/a&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;GWT features&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;A single code base for client and server.&lt;/li&gt;
&lt;li&gt;Great
 development tools, via Eclipse: refactoring, code navigation, etc. This
 was one of the reasons the creators of GWT chose Java as the source 
language. Server-side JavaScript certainly would have been a 
possibility, and compiling JavaScript to JavaScript is not unheard of, 
either.&lt;/li&gt;
&lt;li&gt;Very quick turn-around: after making changes, the server
 and client can be reloaded quickly to reflect the changes (only the 
first start of the client is a bit slow, subsequent reloads are fast).&lt;/li&gt;
&lt;li&gt;Development tools easy to install: All you need is two Eclipse plugins and you are done.&lt;/li&gt;
&lt;li&gt;IDE support: The Eclipse plugin helps with various coding tasks and errors (such as keeping Service and AsyncService consistent)&lt;/li&gt;
&lt;li&gt;Web application easy to install: GWT produces a WAR file. Drop it into a servlet container such as Jetty or Tomcat. Done.&lt;/li&gt;
&lt;li&gt;Supports multiple Browsers&lt;/li&gt;
&lt;li&gt;Communicates over network with your hosted mode instance: Great if you’re working on Mac OS X but want to test in IE.&lt;/li&gt;
&lt;li&gt;Dynamic
 and reusable UI components: programmers can use pre-designed classes to
 implement otherwise time-consuming dynamic behaviors, such as 
drag-and-drop or sophisticated visual tree structures.&lt;/li&gt;
&lt;li&gt;Simple RPC mechanism&lt;/li&gt;
&lt;li&gt;Browser history management&lt;/li&gt;
&lt;li&gt;Support for full-featured Java debugging&lt;/li&gt;
&lt;li&gt;GWT handles some cross-browser issues for the developer.&lt;/li&gt;
&lt;li&gt;JUnit integration&lt;/li&gt;
&lt;li&gt;Easy internationalization&lt;/li&gt;
&lt;li&gt;The developers can mix handwritten JavaScript in the Java source code using the JavaScript Native Interface (JSNI).&lt;/li&gt;
&lt;li&gt;Support for using Google APIs in GWT applications (initially, support for Google Gears)&lt;/li&gt;
&lt;li&gt;Open-source&lt;/li&gt;
&lt;li&gt;The
 developers can design and develop their application in a pure 
object-oriented fashion, since they&#39;re using Java (instead of 
JavaScript).&lt;/li&gt;
&lt;li&gt;The JavaScript that the GWT compiler generates can 
be tailored to be either unobfuscated and easy to understand or 
obfuscated and smaller to download.&lt;/li&gt;
&lt;li&gt;A number of libraries are available for GWT, by Google and third parties. These extend GWT&#39;s features.&lt;/li&gt;
&lt;li&gt;Code
 splitting: with the developer providing &quot;split points&quot; in the source 
code, the GWT compiler will be able to split the JavaScript code into 
several small chunks instead of one big download. This will lead to 
reduced application startup time as the size of the initial download is 
decreased.&lt;/li&gt;
&lt;li&gt;Declarative User Interface: using an XML format, the 
new feature known as UiBinder allows the creation of user interfaces 
through declaration rather than code. This allows clean separation of UI
 construction and behavior implementation.&lt;/li&gt;
&lt;li&gt;Resource bundling: 
the ClientBundle interface will allow resources of any nature (images, 
CSS, text, binary) to be bundled together and transferred in one 
download, resulting in fewer round-trips to the server and hence lower 
application latency.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3402813422384715463&quot; name=&quot;TOC-How-is-GWT-different-from-other-Frameworks&quot;&gt;&lt;/a&gt;&lt;u&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;How is GWT different from other Frameworks&lt;/span&gt;&lt;/u&gt;&lt;/h2&gt;
GWT
 provides a set of ready-to-use user interface widgets that you can 
immediately utilize to create new applications. It also provides a 
simple way to create innovative widgets by combining the existing ones. 
You can use the Eclipse IDE to create, debug, and unit-test your AJAX 
applications. You can build RPC services to provide certain 
functionalities that can be accessed asynchronously from your web 
applications easily using the GWT RPC framework. GWT enables you to 
integrate easily with servers written in other languages, so you can 
quickly enhance your applications to provide a much better user 
experience by utilizing the AJAX framework. GWT has the 
Java-to-JavaScript compiler to distill your application into a set of 
JavaScript and HTML files that you can serve with any web server. This 
gives us a great feature browser compatibility &lt;br /&gt;
&lt;h2&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3402813422384715463&quot; name=&quot;TOC-GWT-with-AJAX&quot;&gt;&lt;/a&gt;&lt;u&gt;&lt;b&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;GWT with AJAX&lt;/span&gt;&lt;/b&gt;&lt;/u&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;GWT Ajax Programming shows you how to create reliable user interfaces that enhance the user experience. &lt;/li&gt;
&lt;li&gt;GWT
 is an open source Java software development framework that makes 
writing AJAX applications like Google Maps and Gmail easy for developers
 who don&#39;t speak browser quirks as a second language. Writing dynamic 
web applications today is a tedious and error-prone process; you spend 
90% of your time working around subtle incompatibilities between web 
browsers and platforms, and JavaScript&#39;s lack of modularity makes 
sharing, testing, and reusing AJAX components difficult and fragile. &lt;/li&gt;
&lt;li&gt;GWT
 lets you avoid many of these headaches while offering your users the 
same dynamic, standards-compliant experience. You write your front end 
in the Java programming language, and the GWT compiler converts your 
Java classes to browser-compliant JavaScript and HTML.&lt;/li&gt;
&lt;li&gt;The 
client-server architecture has undergone a vast change over a short 
period of time. Earlier,each application had a different client 
software, with the software serving as the UI. This software had to be 
installed individually on every client, and needed to be updated every 
time we made changes to the application. We moved from that to the web 
era and deploying applications on the Internet, and then Internet 
enabled us to use the omnipresent web browser for accessing our 
applications from anywhere. This was a sea change, but we still had 
issues of performance and applications not having the same feel or 
responsiveness as desktop applications. Enter AJAX, and now we can build
 web pages that can rival a desktop application in responsiveness and 
nifty looks.AJAX underpins the current trend in developing applications 
for the Internet known as Web.The client-server architecture has 
undergone a vast change over a short period of time. Earlier,each 
application had a different client software, with the software serving 
as the UI. This software had to be installed individually on every 
client, and needed to be updated every time we made changes to the 
application. We moved from that to the web era and deploying 
applications on the Internet, and then Internet enabled us to use the 
omnipresent web browser for accessing our applications from anywhere. 
This was a sea change, but we still had issues of performance and 
applications not having the same feel or responsiveness as desktop 
applications. Enter AJAX, and now we can build web pages that can rival a
 desktop application in responsiveness and nifty looks.AJAX underpins 
the current trend in developing applications for the Internet known as 
Web&lt;/li&gt;
&lt;li&gt;The Google Web Toolkit (GWT) provides a significant boost to
 Ajax development. Any new technology like this is a hard sell 
especially when there are many other choices. In reality, nothing gives 
you the benefits GWT gives you for Ajax applications. If you&#39;re not 
already bound to a framework it just doesn&#39;t make sense to not use it. 
By using GWT for your Ajax application you get big performance gains for
 free. By free I mean that you just don&#39;t need to think about it. You 
concentrate on writing your application logic and GWT is there to make 
things nice for you.&lt;/li&gt;
&lt;li&gt;GWT is a Java environment, which is well 
known for its clear object concept and easy maintenance. While in 
development, you can run your Java code in a special “hosted mode” 
browser with all of the mature, sophisticated Java debugging tools you 
always have available.&lt;/li&gt;
&lt;li&gt;GWT support many ways to process 
asynchronous communication between the browser and the server. One of 
them is the RPC mechanism, which defines interfaces and implementations 
for the server functions, and code will be generated to allow your 
client code to call them as if they were simple local methods. This 
replaces defining XML or JSON data formats for requests and responses. 
Meanwhile, GWT also support the JSON and XML over HTTP.&lt;/li&gt;
&lt;li&gt;Almost 
all AJAX developers have suffered from writing JavaScript to support all
 browsers. GWT, like any other good AJAX framework, will handle this for
 you. The GWT has a built-in GUI library that would allow you built a 
web application like swing and swt. All of these would be able to 
transferred to standard HTML and be embedded into your site.&lt;/li&gt;
&lt;li&gt;More
 importantly, GWT applications provide true interactivity with lots of 
code being executed on the client, reducing server-side interaction to a
 minimum. As a result, it provides very good usability and enhances the 
user experience.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 style=&quot;text-align: center;&quot;&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3402813422384715463&quot; name=&quot;TOC-GWT-Demo-applications&quot;&gt;&lt;/a&gt;&lt;u&gt;GWT Demo applications&lt;/u&gt;&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Select File &amp;gt; New &amp;gt; Web Application Project. &lt;/li&gt;
&lt;li&gt;Enter the name &quot;de.vogella.gwt.helloworld&quot; for your project and the java package. &lt;/li&gt;
&lt;li&gt;Only select &quot;Use Google Web Toolkit&quot;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;img height=&quot;352&quot; src=&quot;http://www.vogella.de/articles/GWT/images/gwt10.gif&quot; width=&quot;400&quot; /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt; Delete all java files under the package &quot;client&quot; and &quot;server&quot;. &lt;/li&gt;
&lt;/ol&gt;
&lt;div lang=&quot;en&quot;&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;h3&gt;


&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3402813422384715463&quot; name=&quot;firstgwt_entrypoint&quot;&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h3 style=&quot;text-align: center;&quot;&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3402813422384715463&quot; name=&quot;TOC-GWT-entry-point&quot;&gt;&lt;/a&gt;&lt;b&gt;&lt;u style=&quot;font-weight: normal;&quot;&gt;GWT entry point&lt;/u&gt;&lt;/b&gt;&lt;/h3&gt;
Create a following Java class &quot;HelloGwt&quot; in the &quot;de.vogella.gwt.helloworld.client&quot; package.    &lt;/div&gt;
&lt;div lang=&quot;en&quot;&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;code&gt;package de.vogella.gwt.helloworld.client;&lt;/code&gt;
&lt;code&gt;import com.google.gwt.core.client.EntryPoint;&lt;/code&gt;
&lt;code&gt;import com.google.gwt.event.dom.client.ClickEvent;&lt;/code&gt;
&lt;code&gt;import com.google.gwt.event.dom.client.ClickHandler;&lt;/code&gt;
&lt;code&gt;import com.google.gwt.user.client.Window;&lt;/code&gt;
&lt;code&gt;import com.google.gwt.user.client.ui.Button;&lt;/code&gt;
&lt;code&gt;import com.google.gwt.user.client.ui.Label;&lt;/code&gt;
&lt;code&gt;import com.google.gwt.user.client.ui.RootPanel;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;code&gt;public class HelloGwt implements EntryPoint {&lt;/code&gt;
&lt;code&gt;@Override&lt;/code&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;code&gt;public void onModuleLoad() {&lt;/code&gt;
&lt;code&gt; Label label = new Label(&quot;Hello GWT !!!&quot;);&lt;/code&gt;
&lt;code&gt; Button button = new Button(&quot;Say something&quot;);&lt;/code&gt;
&lt;code&gt; button.addClickHandler(new ClickHandler() {&lt;/code&gt;
&lt;code&gt; @Override&lt;/code&gt;
&lt;code&gt; public void onClick(ClickEvent event) {&lt;/code&gt;
&lt;code&gt; Window.alert(&quot;Hello, again&quot;);&lt;/code&gt;
&lt;code&gt; }&lt;/code&gt;
&lt;code&gt; });&lt;/code&gt;
&lt;code&gt; RootPanel.get().add(label);&lt;/code&gt;
&lt;code&gt; RootPanel.get().add(button);&lt;/code&gt;
&lt;code&gt; }&lt;/code&gt;
&lt;code&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;/pre&gt;
Create the file
   &quot;De_vogella_gwt_helloworld.gwt.xml&quot; in package
   &quot;de.vogella.gwt.helloworld&quot; to the following.    &lt;br /&gt;
&lt;pre&gt;&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/code&gt;
&lt;code&gt;&amp;lt;module rename-to=&#39;de_vogella_gwt_helloworld&#39;&amp;gt;&lt;/code&gt;
&lt;code&gt;  &amp;lt;!-- Inherit the core Web Toolkit stuff. --&amp;gt;&lt;/code&gt;
&lt;code&gt;  &amp;lt;inherits name=&#39;com.google.gwt.user.User&#39;/&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;code&gt;  &amp;lt;inherits name=&#39;com.google.gwt.user.theme.standard.Standard&#39;/&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;code&gt;  &amp;lt;!-- Specify the app entry point class. --&amp;gt;&lt;/code&gt;
&lt;code&gt;  &amp;lt;entry-point class=&#39;de.vogella.gwt.helloworld.client.HelloGwt&#39;/&amp;gt;&lt;/code&gt;
&lt;code&gt;&amp;lt;/module&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;/pre&gt;
This file defines your entry point to your application. In GWT
   the entry point is similar to the main method in Java.&lt;/div&gt;
&lt;div lang=&quot;en&quot;&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;h3&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3402813422384715463&quot; name=&quot;TOC-HTML-page&quot;&gt;&lt;/a&gt; HTML page&lt;/h3&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
In the folder war/WEB-INF you should find a folder with the
   file &quot;De_vogella_gwt_helloworld.html&quot;. Change this file to the
   following.    &lt;br /&gt;
&lt;pre&gt;&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;code&gt;&amp;lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&amp;gt;&lt;/code&gt;

&lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;
&lt;code&gt;&amp;lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=UTF-8&quot;&amp;gt;&lt;/code&gt;
&lt;code&gt;&amp;lt;link type=&quot;text/css&quot; rel=&quot;stylesheet&quot;&amp;nbsp;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;code&gt;href=&quot;De_vogella_gwt_helloworld.css&quot;&amp;gt;&lt;/code&gt;
&lt;code&gt;&amp;lt;title&amp;gt;My First GWT applicaton&amp;lt;/title&amp;gt;&lt;/code&gt;
&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot; 
src=&quot;de_vogella_gwt_helloworld/de_vogella_gwt_helloworld.nocache.js&quot;&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;code&gt;&amp;lt;/script&amp;gt;&lt;/code&gt;
&lt;code&gt;&amp;lt;/head&amp;gt;&lt;/code&gt;

&lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt;
&lt;code&gt;&amp;lt;!-- OPTIONAL: include this if you want history support --&amp;gt;&lt;/code&gt;
&lt;code&gt;&amp;lt;iframe src=&quot;javascript:&#39;&#39;&quot; id=&quot;__gwt_historyFrame&quot; tabIndex=&#39;-1&#39; 
style=&quot;position:absolute;width:0;height:0;border:0&quot;&amp;gt;&amp;lt;/iframe&amp;gt;&lt;/code&gt;
&lt;code&gt;&amp;lt;h1&amp;gt;My First GWT applicaton&amp;lt;/h1&amp;gt;&lt;/code&gt;
&lt;code&gt;&amp;lt;/body&amp;gt;&lt;/code&gt;
&lt;code&gt;&amp;lt;/html&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div lang=&quot;en&quot;&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;h3&gt;


&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3402813422384715463&quot; name=&quot;firstgwt_webxml&quot;&gt;&lt;/a&gt;web.xml&lt;/h3&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
The Google Plugin created also a web.xml and placed a
   reference
   to a servlet (which we deleted). Change the web.xml to the
   following.    &lt;br /&gt;
&lt;pre&gt;&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/code&gt;
&lt;code&gt;&amp;lt;!DOCTYPE web-app&lt;/code&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;code&gt;PUBLIC &quot;-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN&quot;&lt;/code&gt;
&lt;code&gt;&quot;http://java.sun.com/dtd/web-app_2_3.dtd&quot;&amp;gt;&lt;/code&gt;
&lt;code&gt;&amp;lt;web-app&amp;gt;&lt;/code&gt;
&lt;code&gt;&amp;lt;!-- Default page to serve --&amp;gt;&lt;/code&gt;
&lt;code&gt;&amp;lt;welcome-file-list&amp;gt;&lt;/code&gt;
&lt;code&gt;&amp;lt;welcome-file&amp;gt;De_vogella_gwt_helloworld.html&amp;lt;/welcome-file&amp;gt;&lt;/code&gt;
&lt;code&gt;&amp;lt;/welcome-file-list&amp;gt;&lt;/code&gt;
&lt;code&gt;&amp;lt;/web-app&amp;gt;&lt;/code&gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;h3&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3402813422384715463&quot; name=&quot;TOC-Modify-CSS&quot;&gt;&lt;/a&gt;Modify CSS &lt;/h3&gt;
&lt;/div&gt;
&lt;div lang=&quot;en&quot;&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
Change the CSS of our application. In
   folder war you find a file
   &quot;De_vogella_gwt_helloworld.css&quot;. Change it
   to the following.    &lt;br /&gt;
&lt;pre&gt;&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;code&gt;h1 {&lt;/code&gt;
&lt;code&gt;  font-size: 2em;&lt;/code&gt;
&lt;code&gt;  font-weight: bold;&lt;/code&gt;
&lt;code&gt;  color: #777777;&lt;/code&gt;
&lt;code&gt;}&lt;/code&gt;

&lt;code&gt;.gwt-Label {&lt;/code&gt;
&lt;code&gt; color: #DF0101;&lt;/code&gt;
&lt;code&gt; font: normal 12px tahoma, arial, helvetica, sans-serif;&lt;/code&gt;
&lt;code&gt; border: 1px solid #99bbe8;&lt;/code&gt;
&lt;code&gt; padding: 14px;&lt;/code&gt;
&lt;code&gt;}&lt;/code&gt;

&lt;code&gt;.gwt-Button {&lt;/code&gt;
&lt;code&gt; height: 5.7em;&lt;/code&gt;
&lt;code&gt; margin-bottom: 5px;&lt;/code&gt;
&lt;code&gt; padding-bottom: 3px;&lt;/code&gt;
&lt;code&gt; font-size: 12px;&lt;/code&gt;
&lt;code&gt; font-family: arial, sans-serif;&lt;/code&gt;
&lt;code&gt;}&lt;/code&gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;br /&gt;
You can assign a certain style to your GWT UI elements by using the
    &quot;setStyleName&quot;-Method as shown below.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;code&gt;package de.vogella.gwt.helloworld.client;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;import com.google.gwt.core.client.EntryPoint;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;import com.google.gwt.event.dom.client.ClickEvent;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;import com.google.gwt.event.dom.client.ClickHandler;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;import com.google.gwt.user.client.Window;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;import com.google.gwt.user.client.ui.Button;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;import com.google.gwt.user.client.ui.Label;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;import com.google.gwt.user.client.ui.RootPanel;&lt;/code&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;code&gt;public class HelloGwt implements EntryPoint {&lt;/code&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;code&gt;@Override&lt;/code&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;code&gt;public void onModuleLoad() {&lt;/code&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;code&gt;Label label = new Label(&quot;Hello GWT !!!&quot;);&lt;/code&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;code&gt;label.setStyleName(&quot;my_label_for_css&quot;); // Change css to use this&lt;/code&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;code&gt;Button button = new Button(&quot;Say something&quot;);&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;code&gt;&lt;/code&gt;&lt;code&gt;button.addClickHandler(new ClickHandler() {&lt;/code&gt;&lt;/div&gt;
&lt;div class=&quot;sites-codeblock sites-codesnippet-block&quot;&gt;
&lt;div style=&quot;margin-left: 0.5in; margin-right: 0.5in;&quot;&gt;
&lt;pre&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;@Override&lt;/code&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;public void onClick(ClickEvent event) {&lt;/code&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;Window.alert(&quot;Hello, again&quot;);&lt;/code&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;}&lt;/code&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;});&lt;/code&gt;
&lt;code&gt;RootPanel.get().add(label);&lt;/code&gt;
&lt;code&gt;RootPanel.get().add(button);&lt;/code&gt;
&lt;code&gt;}&lt;/code&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;}&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div lang=&quot;en&quot;&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;h3&gt;

&lt;a href=&quot;http://www.blogger.com/blogger.g?blogID=3402813422384715463&quot; name=&quot;TOC-Run&quot;&gt;&lt;/a&gt;
Run&lt;/h3&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;To run your application right-click the project and select Run As -&amp;gt; &quot;Web application&quot;. &lt;/li&gt;
&lt;li&gt; This opens a new view &quot;Development Mode. Copy the url from this view.&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;img src=&quot;http://www.vogella.de/articles/GWT/images/gwt20.gif&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Paste this url in your browser and install the required plugin (is necessary).&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;img src=&quot;http://www.vogella.de/articles/GWT/images/gwt24.gif&quot; /&gt;&lt;/div&gt;
The result should look like this:&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;img src=&quot;http://www.vogella.de/articles/GWT/images/gwt30.gif&quot; /&gt;&lt;/div&gt;
Congratulations! You created your first GWT
   application.&lt;br /&gt;
&lt;br /&gt;
For More Reporting Tools just like &lt;a href=&quot;http://technoahead.blogspot.in/p/birt.html&quot; rel=&quot;nofollow&quot;&gt;BIRT(Business Intelligence Reporting System)&lt;/a&gt;&lt;br /&gt;
For More Reporting Tools just like&lt;a href=&quot;http://technoahead.blogspot.in/p/itext.html&quot; rel=&quot;nofollow&quot;&gt; itext&lt;/a&gt;&lt;a href=&quot;http://technoahead.blogspot.in/p/birt.html&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://technoahead.blogspot.com/feeds/4459732577753644848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://technoahead.blogspot.com/2012/07/google-web-toolkit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3402813422384715463/posts/default/4459732577753644848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3402813422384715463/posts/default/4459732577753644848'/><link rel='alternate' type='text/html' href='http://technoahead.blogspot.com/2012/07/google-web-toolkit.html' title='Google Web Toolkit'/><author><name>ankur</name><uri>http://www.blogger.com/profile/05045036074513957750</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>