[GWT] How to print a widget or a page

To print a widget or an entire page with GWT, you can use JSNI and the JavaScript print function. A good practice is to put all the content you want to print inside a DIV tag, for instance : An id is assigned to that DIV tag (line 10) and a button is added to … Read more

The future of GWT 2012 Report

And here is the report : https://vaadin.com/gwt/report-2012/ 1300 respondents who answered 30 questions. The report is 20 pages and full of data, charts, stats and commentaries ! Here are some conclusions from the report : compile time and widgets quality are the worst features of GWT cross browser compatibility is the favorite feature size of … Read more

The future of GWT survey

I want to relay this interesting survey from the GWT Steering Committee (and Vaadin). You can take it here : https://vaadin.com/blog/-/blogs/the-future-of-gwt-survey

Handling form-based file upload with GWT and the Apache Jakarta Commons FileUpload library

Uploading files to a filesystem, a remote server, a database, etc, is a frequent need in web applications. These files are often multipart data (that is of varying types such as XML, HTML, plain text, binary … ). With GWT, a good solution to handle this need is the use of the Apache Jakarta Commons … Read more

[GWT] Reduce the number of permutations

Here is a tip that I found on other blogs and I think is worth mentioning again. I tried it, it reduced the number of permutations from 15 to 3 only (1 permutation for IE, 1 permutation for the FR locale, 1 permutation for the EN locale). That means a compilation time of 1:05.750s instead … Read more

[GWT] Table with pagination and one sortable column

I just added a very basic GWT project to my github account to display a table with pagination and one sortable column. The code is mostly based on the official GWT tutorial : http://code.google.com/intl/en/webtoolkit/doc/latest/DevGuideUiCellTable.html I basically just added the SimplePage element to handle pagination : SimplePager pager = new SimplePager(); pager.setDisplay(table); Source : https://github.com/longbeach/MyFirstCellTable Demo … Read more

How to rollback a transaction in GAE

This has nothing to do with JPA. I was trying to deploy a GWT webapp to GAE when I suddenly got an error. As a remedy, i got the message : “java.io.IOException: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=tableaupagination&version=2& 409 Conflict Another transaction by user xxxxx is already in progress for this app and major version. That … Read more