gwt

GWT RPC using classes from another project on client side

My question is similar to my previous one, but this time I included the other project to my main project (I would like to use another project classes on my client side). This is my package hierarchy: The Common.gwt.xml: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN" "...

Deploying gwt-dev.jar on Glassfish (NoClassDefFoundError)

On the server side of my GWT app I use classes from the org.apache.commons.httpclient package. These classes are conveniently packaged in gwt-dev.jar distributed with GWT. I include this jar (along the gwt-servlet.jar) in the WEB-INF/lib of the war. When deploying the produced war file on glassfish and calling the page I get the followin...

Creating GWT Application-Wide Template

I have searched for an easy way to do this but couldn't find a specific example. I have an application developed in GWT utilizing GAE that I would like to have a standard look at feel for the various pages within the application. Is there a way to do this utilzing GWT? ...

Drawable image in GWT

Hello! I need to be able to draw lines on top of an Image in GWT. Anyone knowing about a way to do this? BR Niclas ...

GWT doesn't pass Key events in IE8 on FocusPanel

using GWT 2.0.3, with IE8, i'm trying to catch a Key events on a FocusPanel, it works just fine in FF 3.6, Chrome, but not IE8. any ideas why? ...

Hibernate Serialization Exception in GWT but Eclipselink not

Dear members, I am using eclipselink JPA implementation (Entity) with GWT 2.0 framework on presentation layer. Everything is working properly. But when i change my JPA implementation to Hibernate, I get Serialization/Deserialization Exception on GWT Layer when I pass entity beans but It is okay on eclipselink JPA. Whats really happens? H...

Problem in Large scale application development and MVP tutorial

I recently tried to follow the Large scale application development and MVP tutorial. The tutorial was great but I am having a hard time with a few things. If you try and add a contact to the list, the contact is created. If you try and add another contact, you are taken to the edit screen of the last contact you created. No more co...

Securing a deployed Roo/GWT application

Hi everybody, I recently succeded in uploading a Roo/GWT project on Google App Engine. But, how can I secure it from the Google App Engine application dashboard? Is there a way to tell to GAE to put a Google Login Box at the start and set a list of authorized accounts? Thank you very much, Regards. ...

GAE java.lang.IllegalStateException: Must call one of set*BlobStorage() first.

I am trying to upload a file in GAE using the Blobstore API. I am getting the following exception when running the GAE server locally (dev mode): WARNING: /_ah/upload/ag10cmlwc2NoZWR1bGVychsLEhVfX0Jsb2JVcGxvYWRTZXNzaW9uX18YFQw java.lang.IllegalStateException: Must call one of set*BlobStorage() first. at com.google.appengine.api.blobsto...

GWTTestcase accessing javascript object defined in an external javascript file fails

Hi, I have defined a GWT module that includes an external javascript file using tag. I have written a GWTTestCase that returns the above described module's name. When my testcase accesses a javascript object I see the following exception Caused by: com.google.gwt.core.client.JavaScriptException: (null): null Any idea on how to fix t...

How to set rowspan and colspan values on gwt Grid cell containing a widget ?

let's say I have a code like this Grid g = new Grid(2,2); Label l = new Label("Hello"); g.setWidget(0,1, l); s.setColspan(0,1,2); // there is no such method :( ...

How to dynamically compute a list of colors?

In order to represent a List of Objects with different colors in a GWT-Widget, we need to get dynamically a List of colors with as much different colors as objects. Since the size of the List can vary, we need to be able to compute such a List of colors. ...

GWT MenuBar hide on mouseout

Hello guys, GWT's MenuBar has menubar.setAutoOpen(true); method, but does not have setAutoHide(true). Want to hide menu on mouseout event. I found this http://stackoverflow.com/questions/1469134/how-does-one-autohide-a-gwt-menubar-submenu But there is proper solution in that question.. Linked post says, it can be doable.. Any Ide...

In Line Chart if number of Point increased then xaxis lables looks very bad in Google Visualisation Chart Api

Hi Guys, I am using GWT as front end tool and i use gwt-visualization.jar for charts I want to display the name of xaxis label of Line Chart to be full instead of dot dot (....) means if my number of point on the line chart are 60 and my labels on xaxis are from Jan to Dec in this case it just shows the J.. F..M... like that mean...

Getting an instance of a running servlet

Hi I am using GWT and I have a problem. I want to access the running instance of the servlet declared in web.xml. How can I do this?? I need to have a main running in the same JVM as the servlet. I have an interface between the main class that the servlet implements. This interface allows the main to fill a queue in the servlet. Need he...

Stop browser scripts caching in GWT App

I have a GWT app deployed onto our client's machines. As an ongoing development alongside, we have to release new improved versions of the application fron time to time. Everytime we release a new version we often run into the problem where the client's browser has cached the old scripts scriptsand for a while it behaves strangly as the ...

Adding an authentification system in a deployed Roo/Gwt project

Hi everybody, I deployed recently a Roo/Gwt project on Google App Engine. I spent a couple of hours but couldn't find a tutorial that shows, step by step, how can we add n authentification system (withe the Federated Login Api). I found this very good article that provides some helpful code : import java.io.IOException; import java.i...

How to insert a StringBuilder element into a GWT app?

So, I am getting as return parameter from an already established code a StringBuilder element, and I need to insert it into my GWT app. This StringBuilder element has been formatted into a table before returning. For more clarity, below is the code of how StringBUilder is being generated and what is returned. private static String form...

What directories/files should be ignored when commiting eclipse workspaces to version control?

I'm an Eclipse newbie, and I have an Eclipse workspace with projects for a Google Web Toolkit App. What directories/files should I commit to version control (we're using Subversion)? I believe I don't need to commit .metadata directories, and it seems to me that I don't need to commit war directories, but I'm not positive. The committ...

Observer pattern on GWT

Hey there! I'm relatively new to both GWT and java programming (or OOP for that matter), so apologies for the beginner questions/mistakes in advance. I've been trying to create some kind of observer pattern, but the development mode console keeps dropping error messages and sadly, they're far from helpful. So here's what I'm trying to a...