Benefits of using GWT

I have been exploring GWT for 4 years now. I have seen it enhancing and improving year over year. I have also used it in few of my projects. After using it for long I see following benefits of using GWT. I have added these point based on my experience after using GWT. So I might be wrong on some points please feel free to add your comments about the same. [Read More]

GWT Cell Widget sample using UiRenderer with GWT 2.5-RC1

GWT Cell Widget sample using UiRenderer. I tried this sample with GWT 2.5 RC1 release. For official documentation refer. Below sample is simple sample which will display contents of Person entity using custom cell. And such list of entities can be displayed with cell list. Person.java public class Person { private String fname; private String lname; private String emailid; private int age; /** * @return the fname */ public String getFname() { return fname; } /** * @param fname * the fname to set */ public void setFname(String fname) { this. [Read More]

GWT use I18 Message resource in uiBinder

To use I18 Message resource in uiBinder you need to follow the same mechanism as that of ClientBundle In your corresponding java class add @uiFactory method which will return the object of required Message interface e.g. package com.test.module.client; public interface Messages extends com.google.gwt.i18n.client.Messages { @DefaultMessage("Home") @Key("home") @DefaultMessage("Home") String home(); } public class MyUiBinder extends Composite{ ..... ..... @UiFactory public static Messages getResources() { return GWT.create(Messages.class); } } And you can use the same inside corresponding MyUiBinder. [Read More]

Create Maven GWT project and setup eclipse project

Using Maven archetype you can very easily create the gwt project in Maven. Follow below steps to create the same. Assumption: You have latest version of maven installed (Tried the below steps with 3.0.3 version) mvn archetype:generate It will ask for archetype to use specify 258 (gwt-maven-plugin). Then it will ask for other details like any other archetype asks for, enter the required details. And it will create the given GWT project with the details you have entered with a sample application. [Read More]