GWT theme style overrides my css style

This post on the GWT mailing list describes an alternative solution. You have to create a new ClientBundle which references your CSS file: import com.google.gwt.core.client.GWT; import com.google.gwt.resources.client.ClientBundle; import com.google.gwt.resources.client.CssResource; public interface Resources extends ClientBundle { public static final Resources INSTANCE = GWT.create(Resources.class); @Source(“style.css”) @CssResource.NotStrict CssResource css(); } And then inside your onModuleLoad() method you have … Read more

keyPressEvent.getCharCode() returning 0 for all special keys like enter, tab, escape, etc

the KeyPressHandler is used for example for the SHIFT, CTRL, ALT keys. If you want to attach an event to another key you have to use KeyDownHandler. nameField.addKeyDownHandler(new KeyDownHandler() { @Override public void onKeyDown(KeyDownEvent event) { if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) { Window.alert(“hello”); } } });

GWT RPC data format

EDIT: Brian Slesinsky just documented the protocol (by reverse-engineering the code): https://docs.google.com/document/d/1eG0YocsYYbNAtivkLtcaiEE5IOF5u4LUol8-LL0TIKU/edit First, GWT-RPC protocol is asymmetric so that it’s always optimized for the client-side: fast to deserialize something coming from the server, and fast to serialize something to send to it. It’s obviously not binary, as you suspected, but text-based. client-to-server protocol is pipe-delimited … Read more

GWT Compiler can’t find gwt.xml

I spent an hour staring at my gwt.xml file trying to figure out what I had done wrong after restructuring a project. Turned out it was in a sub-package of client instead of client itself. Right at the bottom of a long list of packages and sub-packages too. So in Eclipse’s tree view, it looked … Read more

exception in GWT RPC app

You mean your code works fine but you see this exception in logs? Exception basically means that compilation cache failed to load for some reason. Most likely cache has become corrupted for some reason, so try to remove folder gwt-UnitCache from your project, this should help.

Error when importing Maven-GWT project (“No marketplace entries found to handle gwt-maven-plugin”)

Make sure you are not using the embedded Maven of Eclipse. Go to Window->Preference ->Maven -> Installation->choose your own maven installation folder there. EDIT If your company pays for IDE, you should ask for IntelliJ the IDE for Java, which I would say is better than Eclipse in many ways, not saying Eclipse is not … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)