How to use GWT 2.1 Data Presentation Widgets

Google I/O 2010 – GWT’s UI overhaul javadocs package in 2.1 Eclipse update site for milestone 2 While the code is in bikeshed, add this line to your gwt.xml file: <inherits name=””/> The following examples follow: CellList of TextCells with PageSizePager CellList of TextCells with a SimplePager CellList of TextCells with a SimplePager and … Read more

GWT Custom Events

Events in general: Events are always sent to inform about something (e.g. a change of state). Let’s take your example with a man and a wall. Here we can imagine that there is a game where a user can walk as a man in a labyrinth. Every time a user hits the wall it should … Read more

How can a user download a file in client side (Google Web Toolkit)

You REALLY need to distinguish between GWT client side java code and server side java code. On the client side in your GWT Java Code String url = GWT.getModuleBaseURL() + “downloadService?fileInfo1=” + fileInfo1; url, “_blank”, “status=0,toolbar=0,menubar=0,location=0”); On server side in your non-gwt Java code- In web.xml <servlet> <servlet-name>downloadService</servlet-name> <servlet-class>AAA.BBB.CCC.DownloadServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>downloadService</servlet-name> <url-pattern>/<gwtmodulename>/downloadService</url-pattern> </servlet-mapping> … Read more

how to clear cache in gwt?

When you deploy a GWT-application it’s important to avoid proxies and browsers to cache the .nocache.js-files generated by GWT. One solution is to implement a servlet filter that adds the necessary HTTP-headers that control the caching behaviour. Here’s such a filter: The headers in that example are: Date: Wed, 24 Nov 2010 20:32:43 GMT … Read more