Maven GWT 2.0 and Eclipse

EDIT: I’ve updated my answer with additional steps provided by the OP. Credits to the OP for the details. I just broke my Eclipse setup trying to install the latest version of the Google Plugin for Eclipse (for GWT 2.0) so I can’t confirm everything but, let’s assume the following prerequisites are fulfilled: Eclipse 3.5 … Read more

What are the possible user.agent values in gwt.xml?

Depends on the version of GWT, but here’s the latest definition. (Recently all IE9 / IE10 has been removed) UPDATE: the module has moved from com.google.gwt.user.UserAgent to com.google.gwt.useragent.UserAgent, link above updated. UPDATE 2: GWT sources have moved to gwt.googlesource.com Update 3: GWT sources have moved to github.com, link updated.

GWT: Capturing URL parameters in GET request

Try, String value = com.google.gwt.user.client.Window.Location.getParameter(“orderId”); // parse the value to int P.S. GWT can invoke native javascript which means if javascript can do the stuff, GWT can do it too; e.g. in GWT, you can write public static native void alert(String msg) /*-{ $wnd.alert(“Hey I am javascript”); }-*/; In this case, you can even use … Read more

ClassNotFoundException: org.slf4j.LoggerFactory

Better to always download as your first try, the most recent version from the developer’s site I had the same error message you had, and by downloading the jar from the above (slf4j-1.7.2.tar.gz most recent version as of 2012OCT13), untarring, uncompressing, adding 2 jars to build path in eclipse (or adding to classpath in comand … Read more

Differences between GWT and Vaadin

In GWT application logic is normally run on client side. It only calls server when it needs to read/save some data. In Vaadin application logic is on server side. Client side must normally call server after every user interaction. GWT advantage: App logic (replies to user interaction) is faster as it is run locally in … Read more

Why use GWT.create() instead of new?

GWT.create is used by the GWT compiler for deferred binding. Deferred binding is a feature of the GWT compiler that works by generating many versions of code at compile time, only one of which needs to be loaded by a particular client during bootstrapping at runtime. You should only use the GWT.create for those cases … 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

Json Java serialization that works with GWT [closed]

Take a look at GWT’s Overlay Types. I think this is by far the easiest way to work with JSON in GWT. Here’s a modified code example from the linked article: public class Customer extends JavaScriptObject { public final native String getFirstName() /*-{ return this.first_name; }-*/; public final native void setFirstName(String value) /*-{ this.first_name = … Read more

How do I select only visible elements using XPath?

This should work: .//button[.=’OK’ and not(ancestor::div[contains(@style,’display:none’)]) and not(ancestor::div[contains(@style,’display: none’)])] EDIT: The simpler and more efficient expression below: //div[not(contains(@style,’display:none’))]//button[.=’OK’] does not work properly because every button has at least one div that’s visible in its ancestors.