Google Web Toolkit News - onGWT.com

To content | To menu | To search

GWT tips and tricks

Entries feed - Comments feed

Thursday 1 January 2009

GWT XML Indenter/Formatter

Jon

So while I was working on one of my outreach projects as a graduate student, I wanted to write a simple XML indenter to make my GWT generated xml more aesthetically appealing using stock GWT. The xml document is assumed to be as lean as possible (There are no empty #text nodes that are usually in xml because of the indentation.)

A first post
GWT XML Indenter/Formatter

Thursday 4 September 2008

Dojo Multifile Uploader with Flash

Mike Wilcox

The Dojo Toolkit now has support for multi-file uploads, thanks to the new Deft project. Thedojox.form.FileUploader class embeds a hidden SWF file in the page which, when triggered, will open a system dialog that supports multiple file selection, and also file masks, which allows the user to filter their selection by file type.

It could be nice to have a multifile Uploader for GWT.

Deft Project

Demonstration

Source : Ajaxian

Wednesday 27 August 2008

Key Bindings

Dion Almaer

I love keyboard shortcuts. I hate the mouse. I wish that Web applications would offer more keyboard shortcuts a la Gmail, and wondered if there could be a generic way to tie keys to actions in an app. There are things such as accessKey, but we need more.

I share the opinion of Dion. I think we need a good key bindings library for GWT.

Custom events as API end points for key bindings and more

Monday 11 August 2008

How do speed up the GWT compiler ?

Olivier Bazoud :

I am working on an international CRM project based on JDK 6, GWT 1.5, MyGWT/Ext GWT, tomcat 6, maven, hibernate, spring, Oracle, ... This business application must worked with Firefox 2, IE 6/7 and 9 locales (the target is about 15 locales). This a very large GWT application and it takes a long time to compile, about 12 mn "only" for GWT maven module : this is a long time in development mode.

International CRM based on GWT : cool !
Can I speed up the GWT compiler ? (Part I)
Can I speed up the GWT compiler ? (Part II)
Can I speed up the GWT compiler ? (Part III)

Saturday 3 May 2008

Back to basics : In place editor in GWT

Julien Viet

The in place editor is one of the simplest yet powerful feature brought by Ajax. I wrote two such editors last year, using javascript and Prototype as an exercise. Recently I started to study GWT more in depth and I found fun to write a GWT version of the in place editor.

GWT in-place-editor

Tuesday 29 April 2008

Capcha and GWT

benjo:

 I have been struggling with getting recaptcha to work with GWT, and finally succeeded. I thought I would share how I did this. The method I solved this problem involves some JNSI, but also modifying some of that static content in your .html file. It is inelegant, but I could not get a pure JNSI implementation to work.

Recaptcha on GWT

Tuesday 18 March 2008

GWT Modules and HTML

Jeff Bolle :

In a variety of views I would like to give the user the option of
"popping out" the current data detail view, much the same way that
GMail allows you to pop out the e-mail composition window.  I would
like to retain the full and normal use of the classes and
functionality in the popout window.  Basically, I want to load a
class, ExternalViewer, in the popout window.  I am not looking for a
panel within the root window, but a true separate browser window.

Dan Morill gives a very good solution for this design problem.

Modules and HTML

Thursday 7 February 2008

Adding a Box to a GWT Panel

erle

A few days ago ( from the writing of this entry ), I tried to search the web on how to add a box in GWT. You know, that box that nicely envelops your user interface elements. Sadly, the only relevant hit that I got was an entry in the GWT mailing list of a guy asking the same thing, and him being told to “learn CSS”. So, I set off to learn it on my own, and here’s what I found so far

Adding a Box in GWT

image

Friday 30 November 2007

GWT Hyperlink and the Mouse That Went Over

image Ivan Moscoso

It's Wednesday, and you have had it up to here with the weather.  There's nothing on TV and you've gone out for so many walks, you can't even get your dog to look you in the eye without him hiding under the kitchen table.  You have time on your hand, so you decide you want to see how easy it is to set the status bar text when hovering over a link in GWT (why?  don't ask why, let's just pretend for a second).  You settle on three possible approaches...

GWT Hyperlink and the Mouse That Went Over

Friday 19 October 2007

Large ImageBundle objects in IE6

Due to the way IE6 works internally, IE6 takes up lots of memory linear to the area of the image bundle (horizXvertical). In GWT 1.4.60, GWT doesn't make any effort to reduce image sizes. This problem is especially prevalent if you have at least 1 tall image in the bundle.

Issue 1765

Wednesday 8 August 2007

Gwt and Maven2

David Gageot :

Trying to use Maven2 to build a GWT project, here is the simplest pom.xml I came up with.

Gwt and Maven2

Saturday 4 August 2007

Portals and Portlets with GWT modules

Xantorohara

Last week I considered possibility of using portlets and GWT modules together (i.e.: GWT inside portlet's window).
And I'm coming to conclusion that it works. And it works pretty good.

Portals and Portlets with GWT modules

Sunday 1 July 2007

GWT : No Java 5 – No Varargs!

Petrus Pelser

The release of Java version 5 has provided us with some interesting and useful new ways to do things that would usually require a lot of effort, for example the new for-each loop and varargs.
...
There is another way to pass a variable amount of arguments to a method by just using Java 1.4 syntax. That is by passing an array of objects.
...

No Java 5 – No Varargs!

Friday 22 June 2007

GWT : Tips and Tricks for Spring One conference

DeCare Systems Ireland

Amongst the many tips that Bram shared was the suggestion to define your own abstract AsyncCallback base class to deal with error results in a centralized way.

Wednesday 20 June 2007

GWT and JSP 2.0

Ramon Buckland

I have been trying to host my modules (GWT modules) into an already existing JSP page that is written in JSP 2.0 of the XML variety. I find these good because it means you are forced to create valid HTML markup. Anyways, combining the two, GWT and XML JSPs meant I was completely unable to get the GWT modules to attach and appear on the page. I was getting JavaScript Errors, j.write is not a function...

GWT and JSP 2.0 (Oh the Pain!)

Tuesday 19 June 2007

GWT supports java.io.Serializable


Most interesting part IMHO is that GWT RPC now can use java.io.Serializable. Before 1.4 we had to implement a GWT interface called IsSerializable.

GWT is listening to developer demands

Friday 15 June 2007

How to use GWT and log4j

dialloma

I want to use log4j in GWT application. I have dowloaded the jar file and include it in GWT project path. So I can use Logger classe to initialize a logger and use it later. But I have a error when I use it. Please, can you explain to me how to use it ? Must I insert some line in module file for specify the the presence of the log4j library ? And how can I use the property file for my logger ?

Thread: How to use GWT and log4j

Sunday 10 June 2007

GWT : Using Generators

Timepedia:

In the last part, I described what generators are and what they can be used for. In this post, I'll be explaining how I used them to build the GWT Exporter.

For uber-GWTer only !
GWT Demystified: Generators Part Deux

GWT- How to reference the body in your java code

Sébastien Letélié :

I was confronted with this problem. How to retrieve Element references the body. As GWT API doesn’t provide this service directly you need to use an other way.

GWT- How to reference the body in your java code

GWT and Maven 2

In this blog, Ramon Buckland gives some tips and tricks to use GWT with Maven2.
GWT and Maven 2, OH the pain!

- page 1 of 3