gwt

Using GWT History to pass parameters?

I have a page called Orders and a page called OrderDetails. As described in the excellent MVP tutorial I'm working with History (with a central ValueChangeListener) and an "event bus" HandlerManager. I have a handler registered for the event that someone clicks on an order, which basically creates the OrderDetailPresenter, passes in the...

How do I convert an existent JavaScriptObject to a java primitive type in GWT?

Supposing that I have a reference to an existent JavaScriptObject that holds a primitive type, like an int value, how can I get this int value? ...

GWT - Many widgets or a widget containing other widgets

Hi, I'm designing the user interface. It has some static content and a lot of widgets. Wich is better? HTML with a widget containing the other widgets HTML containing all widgets thx a lot... ...

GWT Get rid of the tables

I've inherited a GWT project that uses Panels and Panels beyond belief, all of which generated tons of nested tables. I want to style this program and to do so, I'd like to have all of my elements become s so I can CSS style them properly -- can someone tell me how to go about doing that? Are there widgets in GWT that don't use tables, e...

GWT Replace div (not append!) with RootPanel

Hello, In GWT if I do RootPanel.get("someDiv").add(myPanel); I invariably get: <div id="someDiv"><div></div></div> But, I just want 1 level of hierarchy, i.e., <div id="someDiv"><div> where the someDiv contains myPanel. Any ideas? Thanks! ...

Hidden Features of Google Web Toolkit 2

I'm curious to find out what the obscure and hidden features of Google Web Toolkit 2 (GWT) are. If you know of any tricks/features - that are uncommon, undocumented or hidden in the Javadocs then what are they and why are they useful? My personal favorite was the StyleSheetLoader which is buried in the ShowCase application bundled with...

GWT Graphics - resetting the text

Hi, I am working on a project for which i am using GWT-Graphics. I have drawing Area containing ellipse and text. When i double click on them a pop-up menu appears and gives an option to enter text. Now when i save this text i want it to appear on this drawing area in the place of the previous text. I am trying to do this but with no l...

Eclipse java.lang.ClassNotFoundException: com.google.gwt.dev.About

I have a trouble with exception on importing (compiling) some GWT project into Eclipse. My environment is Mac OS X 1.6.2 Eclipse IDE for Java EE Developers 1.2.1.20090918-0703 epp.package.jee Google App Engine Java SDK 1.3.1 1.3.1.v201002101412 Google Web Toolkit SDK 2.0.3 2.0.3.v201002191036 Exception Stack java.lang.ClassNo...

GWT Compile "Add an entry point module" dialog

Can anyone explain where the Eclipse GWT plugin defines it's entry points? In an attempt to get my old GWT project working again with GWT 2.0, I created a default GWT 2.0 project in Eclipse and was able to run it successfully. It's the one that asks for a name and calls the 'greet' servlet on the server, which responds etc... so far so ...

GWT - adding external java classes to client project

Hello I have a GWT project. Client code is located in the "client" dir. I want to attach an external java classes (mainly plain POJO DTO classes) that are in external directory. How to configure the gwt.xml file? I get errors of this kind: [ERROR] Errors in 'file:/C:/development/projects/CodeSpaces/LocateMe/LocateMeWeb/src/com/dominol...

combo box autocomplete

Is there anyway to have the autocomplete for a combo box to start from anywhere in the text, let me give you an example. If I have someone named john smith in the combobox if I start with the letter 'j' it pulls up john smith but less say I want to start with the letter 's' to search for his last name, is that possible, if so does anyone...

GWT: Referencing deprecated class SerializableException

Hi When using GWT I get following warning: Referencing deprecated class 'com.google.gwt.user.client.rpc.SerializableException' While it's only a warning, it's dead annoying having to look at every single time I run the project. The warning occours since my RPC throws java.lang.Exception, and thus never actually uses the Serializable...

GWT upgarde from 1.4 to 2.0

Hi, I have an application written in GWT 1.4 To upgrade it to 2.0 i have simply created a project in 2.0 with same naming convection as my original application and teamed up the code from VSS. While running the project my HTTP request are not getting responded. The mappings that i have put in web.xml too shows an error if i place more ...

Dynamically creating colors with different brightness

Hi. I have a color, which I only know at runtime. Using this color i want to create two new colors, one very bright and one none bright version of the color. So to clarify, say i have the color Red; I want to create the hex-value for a "Light red" color, and a "Dark red" color. How would i go about doing this? My code is written in Jav...

GWT History token rewriting

Hi friends, I want to do history token rewriting. Don't know its possible or not. e.g. If my application URL is http://localhost:8080/myapp/#login which contain 'login' as history token. Is it possible to rewrite the URL like http://localhost:8080/myapp/user/login. Or is it possible to remove '#' from history token? ...

In GWT, how to reset the URL when the user hits "Cancel" in the navigation confirmation dialog?

In my GWT application, I want to ask a user confirmation when he navigates out of the current application, i.e. by entering a URL or closing the browser. This is typically done by registering a ClosingHandler and setting the desired dialog message in the onWindowClosing method. This seems to work well. However, if the user tries to navi...

GWT Servlet-based Notification (Server Event Bus)

Can anyone think of a good way to allow the server to notify the client based upon server processing? For example, consider the following events: A user requests a deletion of data, however, due to it's long-running time, we kick it off to a queue. The client receives a "Yes we completed your transaction successfully". The server delet...

Client and Server Side rules engines?

I'm looking for Java rules engine options that will allow me to use the same rules in a server side backend, a GWT frontend, and JavaME apps. I'd also love to hear about the pitfalls of attempting to do such. The motivation is a push to use a rules engine in a server side code base that I am concerned may cause a schism between validati...

HornetQ GWT integration

Hi, I am interested to know about GWT integration with HornetQ. My GWT app will send messages to HornetQ server using JMS api. An external client will consume these message and process them accordingly. So, this is basically point-to-point mode. From their wiki, I see that because of the way J2EE/JCA works, HornetQ sessions will automati...

Client side caching in GWT

We have a gwt-client, which recieves quite a lot of data from our servers. Logically, i want to cache the data on the client side, sparing the server from unnecessary requests. As of today i have let it up to my models to handle the caching of data, which doesn't scale very well. It's also become a problem since different developers in ...