concept image in category gwt

This is an excerpt from Manning's book GWT in Action.
The compiler is a busy bee, and throughout this book we’ll show you some of its secrets. One of these is a code generator, which generates Java source code for you in certain cases. The compiler may kick off one or more code generators based on what it finds in your code. This could be the generator that produces the code to serialize Java objects and send them to the server (chapter 7, “Communicating with GWT-RPC”), or it could be the generator that converts your templates into working code (chapter 6, “Interface design with UiBinder”). It could also be the generator that takes external files like CSS or images and optimizes them in a way that allows the browser to load them more quickly (chapter 5, “Using client bundles”). Or perhaps you’ll create your own custom generator to fill a specific need (chapter 18, “Generators”).
Other resources—Do you also need to change other resources, such as images, for different locales; is there more that needs doing?
<g:Image src="x.png" altText="description of image" />

This is an excerpt from Manning's book GWT in Practice.
The public directory denotes files that will also be distributed to the client, but that do not require compilation and translation to JavaScript
. This typically includes CSS, images, static HTML, and any other such assets that should not be translated, including existing JavaScript. The public package is known as the public path.
Now that we have the servlet to stream the Comet messages, we need a servlet to receive images from the admin, which we’ll look at in the next section.
The last part of State of the Union is another really basic class. This is a simple servlet that uses the Apache Commons FileUpload (http://commons.apache.org/fileupload/) module to take images from our Swing application and push them out to the clients. You’ll notice two things about this servlet in our sample project: First, it’s the only servlet that isn’t defined in the gwt.xml file. We want the GWT messaging module to be reusable by other applications without rebuilding the whole system, so we’ll keep the FileUpload module isolated from the rest of the servlets. Second, the fact that FileUpload has no dependencies on any GWT-specific code highlights the importance of separating your true service class from your GWT service class. In many cases, you might want to provide non-GWT UIs that interact with the same service. By keeping this separation clean, it’s possible to use regular Java servlets with the service in the same context as your GWT application.
. This typically includes CSS, images, static HTML, and any other such assets that should not be translated, including existing JavaScript. The public package is known as the public path.