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

Multiple pages tutorial in Google Web Toolkit (GWT)

What I usually do in situations like this is design the webpage framework first. I’ll have a div for the header, side menu and footer. I’ll also have a div in my HTML for the main content. Example: <html xmlns=””> <head> <meta name=”gwt:module” content=”org.project.package.Core=org.project.package.Core”> </head> <body> <!– Load the JavaScript code for GWT –> <script … Read more

GWT module may need to be (re)compiled REDUX

Have you started the DevMode using your src/main/webapp as the “war folder”? or in other words, is there a *.nocache.js in your src/main/webapp? In that case, this file will overwrite the one produced by the GWT compiler as called by the gwt-maven-plugin. The *.nocache.js generated by the DevMode (when no one exists, generated by a … Read more