gwt

GWT and Hibernate - NoClassDefFoundError when using Hibernate

In my GWT service on server side I use Hibernate. When creating a SessionFactory I get following error: "java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. Please see the Google App Engine developer's guide for more details." What could be the reason? ...

GWT and java mail api: NoSuchProviderException

Hi everybody! I have to send an email from a gwt project using java mail api. I manage to do it with a normal java application (a Main project, a Junit test, whatever) but it just doesn't work inside an RPC call on GWT (version 1.7.1). I think I'm using the proper java libraries as I can send this email outside GWT. I'm using it in host...

GWT app - deploying on Tomcat or any other servlet container

Hello Is there a plugin for Eclipse GWT or any other method to automatically deploy and run GWT app on Tomcat (or any other Serlvet container)? For the moment the only method I know is copying the compiled classes into WEB-INF directory but this is an arduous work. Additionally you have to configure Apache Tomcat manually. I'd like to h...

How can I keep GWT from trying to include every serializable class when I use ArrayList

I have an RPC service in GWT that needs to return a List. The List can be filled with various types of objects, all of which are serializable and all of are referenced elsewhere in my service so they should be available to GWT RPC. However, unless I put on a generic type parameter (e.g. ArrayList<String>), GWT gives me the warning: R...

using Gson library in GWT client code

Hi, I'm currently writing a web application in java using GWT 2.0 in eclipse. I wanted to know if there is a way to use Gson library in a GWT application's client code. and if there is a way - please tell me how... Thanks! ...

is GWT right for me?

I've been a C++ programmer for 15 years... I've done NO Java development... I HAVE built websites with HTML, CSS, Javascript and PHP... Now, my question is this: Is the productivity gain I'll get from using something like GWT really worth the learning curve for me? I don't really have a strong desire to learn Java... I've never used Ecl...

problem with PopupPanel - gwt

Hi, I am using PopupPanel and Gwt Canvas for my project. Here when clicked on the canvas-drawing area the popuppanel appears. In my main class i have a private class which extends PopupPanel and this panel is then called in the onModuleLoad(). The code looks something like this: Button b = new Button("Circle"); b.addClickHandle...

How to deal with slow widgets rendering in Ext GWT (GXT)?

I have window with few widgets inside. When it is rendered, it shows in top left corner for a second and then is centered. Is there any chance to lazy rendering? I mean that window is centered first and then child widgets are rendered. Or maybe I can hide window content behind mask during it is rendered? ...

Click event to a Gwt-connector

Hi, I am trying to add click event to one of the widgets that use gwt-connector. Here is the code: public class Diagrams extends Diagram implements HasClickHandlers{ public Diagrams(AbsolutePanel boundaryPanel) { super(boundaryPanel); } @Override public HandlerRegistration addClickHandler(ClickHandler handler)...

How do you get the python Google App Engine development server (dev_server.py) running for unit test in GWT?

So, I have a GWT client, which interacts with a Python Google App Engine server. The client makes request to server resources, the server responds in JSON. It is simple, no RPC or anything like that. I am using Eclipse to develop my GWT code. I have GWTTestCase test that I would like to run. Unfortunately, I have no idea how to actuall...

SmartGWT calendar month widget

I am evaluating whether to use SmartGWT, and have no prior experience with it. I have one particular question on the Calendar widget. When you go to a airline/car rental website, and you need to specify the day of the month to make the booking, they pop up a month calendar which the customer-user could click forward/previous month to se...

GWT MouseOver performance

I'm writing an application in GWT. It went really well, until I ran it in IE. I made an application that uses a FlexTable, and each cell of the table was to be highlighted. I wrote the MouseOver handler, but in the Internet Explorer it works incredibly slow. Is there anything I can do about it? ...

GWT FlexTable - drag selection how?

Hello! I am trying to get a proper method for days to select multiple cells in a flextable's column. So far i only managed to do it with clicks which works well, but a drag selection would be much better. I have been reading docs and searching, but all the stuff i found was based on deprecated code. I use GWT 2.0 . I know i need some ...

Problem with compiling a gwt project with ant

Hi, I've been using GWT for quite some time now and have only used the eclipse plugin to compile my projects so far. Due to a new requirement I need to use an ant build (for the first time) to build a gwt project. First I'll say that I have 2 modules which have an entry point and 2 other common modules which only contain java classes (wh...

ext gwt remove(Widget) issue

hi all, i have an vertical panel (boxContent) with three horizontal panels (row1, row2 and row3). I want to remove the second row, so I'm using following: boxContent.remove(row2) The content of the row is removed, but the row still exist with following content <tr> <td class="x-table-layout-cell" align="left" valign="top"/> </tr> ...

GWT Simple RPC use case problem : Code included

Hello, I am trying to work out how to send a domain object from the server-side to the client-side using GWT RPC. I've coded a really simple use case that represents the sort of thing I (and others?) need to be able to do but presently can't get to work. I have scoured the docs, tutorials and forums but they either show Strings being p...

Is the GWT TimeZone offset backwards?

I'm using com.google.gwt.i18n.client.timezone to try and display a date (as at the server), but GWT automatically adds the current timezone to the date when formatting it, meaning The wrong date is shown in different timezones. To combat this, I'm sending the server's timezone offset to the client and using that when formatting. I live...

How to draw "text" using GWT-Graphics

Hi, I am using GWT-Graphics to create shapes like rectangle, circles etc... Now i am trying to add text to these shapes. Here is how the code looks like: DrawingArea d1 = new DrawingArea(100, 100); Ellipse e = new Ellipse(29, 20, 30, 20); Text t = new Text(10, 20, "A"); d1.add(e); d1.add(t); boundaryPanel.add(d1, 200, 40 ); But when ...

Why use GWT.create() instead of new?

What is the difference between GWT.create(SomeClass.class) and new SomeClass()? Why would you use one over the other? ...

Serverside configuration constants in GWT

Hi I need some configuration files, that can be changed without recompiling the project in my GWT application. However, the GWT i18n doesn't allow to be used serverside. So what's the solution for getting configuration constants to be used serverside? Thanks. ...