gwt

Client-side caching in Rich Internet Applications

I'm starting to step into unfamiliar territory with regards to performance improvement and our RIA (Rich Internet Application) built with GWT. For those unfamiliar with GWT, essentially when deployed it's just pure JavaScript. We're interfacing with the server side using a REST-style XML web service via XMLHttpRequest. Our XML is un-mar...

Returning JSON in GWT

I'm still pretty new to JSON and GWT and I'm trying to figure out how to pass JSON data back from a page into my GWT app. I pass the JSON back to a class: public class GetProductTree extends JavaScriptObject { protected GetProductTree() { } public final native String getCustomerName() /*-{ return this.customername; }-*/; } ...

To use the Gears WorkerPool in GWT do I have to write the same code in Java and Javascript?

In order to use the WorkerPool (Javascript Threads) class and functionality in GWT/Gears, do I need to write my code in both Java and Javascript? Upon inspection of WorkerPool - Getting Started and the sample WorkerPool application in the GWT-Gears-1.1 download package it seems that I need to. It seems that the Java code is used to dem...

Selenium test on a GWT app - request not sent to server

I'm writing a selenium test for a GWT app. It uses the mouseover/ mousedown/mouseup approach to click pushbuttons. It clicks the Login button of my app, which calls up the div containing userid and password entry fields, and that works just fine. It then enters a userid and password, then clicks the Submit button for the login form. ...

Data handling in web app with GWT, Struts and Hibernate

I am writing a Web App using Struts and Hibernate. Recently, I discovered GWT and the Visualization API. This all looked very interesting and provides AJAX functionalities that my app needs. I'm a newbie that is quite confused.... Where to put data access level checks? In the web app, users have different level of access for the data. ...

How can I change the color of a DecoratorPanel in GWT?

I see that it uses png images for the rendering, so I am assuming that means I need to provide my own version of these images, with colors changed appropriately. Where do I put these images, and how do I apply them in the CSS? ...

Loading Data from Javascript into GWT

I have been attempting to do the following for a few days to no avail: I have a GWT application that makes several RPC calls on startup to load initial data. For the most part, this data is relatively static, so I'd skip the RPC call if I could. But the data changes more often than the application does, so I'd rather not include it at...

Fundamental GWT asynchronous call misunderstanding...

Hello, I seem to be suffering from some fundamental misunderstanding of the way that GWT async calls work and/or how widgets are updated upon receipt of a callback. I've created the two interfaces as well as the implementation and they seem to be communicating with one another. I make this claim based on reasonable looking data observ...

How to put Google Adsense in GWT

Do anyone know how to put Google adsense ads inside a GWT web application? ...

Launching background threads on GWT startup

I have a GWT application that displays some charts rendered by JFreeChart. Every few minutes, the page refreshes, which causes the app to generate new charts. (In other words, the entire chart generation process is bootstrapped by a client request.) The problem with this is that multiple clients hitting the same server would result in mu...

Playing a sound notification using Google Web Toolkit

Is it possible to play a sound notification using Google Web Toolkit which will be translated to Javascript? Thanks. ...

How would I write a Java regex that gets the contents of a <script> tag?

I'm trying to integrate analytics into my GWT application. To do this, I'm calling a service that returns a String of HTML that needs to be parsed and eval'ed. I need a regex that looks for and grabs either 1) the body of the tag or 2) the contents of the "src" attribute. I want to eval both of these with JavaScript. I'm happy with as...

Combining servlets and a "normal" webserver

I am about to migrate a web application from PHP to JAVA (GWT) but I would like to do it iteratively, chunk by chunk. Currently I use apache to serve the HTML and PHP files, but in the conversion period I also need Jetty or Tomcat to handle the servlets. And also from port 80 I guess? How can I do such a mix? ...

GWT Composite best practices

Howdy, I'm learning GWT and have started to get the hang of it. I'm at the point where my code is getting to be a spaghetti mess so I'm going back and factoring reasonable bits of it out as Composites. The first problem I ran into was that my tool support failed to give the new Composite class an initWidget() method. It did include a...

Is G4jsf still being developed/supported?

I've been evaluating different Java Web Application UI Frameworks. I have about 8 months of intensive JSF experience that I'd like to continue using. JSF also provides me the spider-readable markup as well as the ability to create very simple forms without touching much Java code. I also will have need for thick-client side interfaces t...

How to float an element in GWT.

I have an element in GWT.I want it to float right .I have used - DOM.setStyleAttribute(element, "float", "right");-which is not working .I am not sure if I am using correct arrtibute('float').Please advise.Thanks in advance ...

What do you use to monitor jscript memory usage in Internet Explorer

We're debugging a GWT app. Runs ok in Firefox, in IE6.0 starts working ok but after some time, it gets on its knees and starts to crawl. After doing some tests we're suspecting some memory problems ( too much memory used, memory leaks, etc ) Besides using taskmanager and processxp to watch the memory usage grow :)....¿do you recommend a...

Generics and Collections in GWT, Null Pointer

When calling a method that adds an object to a collection in GWT I get a null pointer error. I have no idea why as everything I have done creates a very simple object (only contains a string). Here is the code that calls the function and the function: public class PlantMenu extends VerticalPanel { private Collection<PlantData> pl...

GWT StackPanel Selected

I cannot seem to set the CSS of the selected stack panel without having it get overwritten by the unselected CSS. If I leave the unselected alone, the selected stack panel will correctly overwrite, but if I define my own, it will not. Is this a bug, or some "working as intended" thing? Here I set my CSS: .gwt-StackPanel .gwt-StackPan...

GWT: Capturing URL parameters in GET request

I need to build a GWT application that will be called by an external application with specific URL parameters. For example: http://www.somehost.com/com.app.client.Order.html?orderId=99999. How do I capture the orderId parameter inside the GWT application? ...