gwt

How to mix html with gwt widgets?

I try to generate a dynamically gwt ui. As a result I would get a html fragment like this: <ol> <li>MyLabel</li> <li><input type="text"></li> </ol> The Label should be a GWT Label and the input should be a GWT TextBox. How can I achieve this with GWT? I've tried to use the HTMLPanel class, but how can I inject the <li> Tags? I can...

Smart GWT or ext GWT or Vaadin for Google app engine?

Hi all, I have my back end on the Google app engine. Now I need a RIA on top of it. What should be my option? Smart GWT? Ext GWT? or Vaadin? or if any of you know any other RIA UI tecnology other than JSF and Flex, pls let me know. Thanks ...

Some subtlety of GWT compilation - "gwt module may need to be (re)compiled."

I'm deploying an app to GAE. I have a single project setup in Eclipse, with three separate GWT modules, each with its own HTML page, entry point, etc. They share a lot of code. When I deploy the app to appengine, TWO of the modules work fine. I can access their HTML pages perfectly. The third gives me the error that "gwt module 'xyz...

GWT, navigate to page using POST request

I want to navigate away from my GWT app using a POST request. If it was a GET I could just use Window.Location and if I didn't need it to be dynamic I could hardcode a Form and submit it. The FormPanel seems to be the answer for creating and submitting forms, but it does it asynchronously, and I want the user's browser to follow the for...

what type of event is control-click in gwt

What is the event type for the control click in a table cell in a GWT application? I want to basically change the color of the background when the user does this action. This part of my code basically just looks like: public void onBrowserEvent(Event event) { Element td = getEventTargetCell(event); if (td == null) ret...

How to tell GWT not to compile browser-specific permutations of GWT core and JDK emulation?

I have some code that used to compile with GWT 1.x and link into a single script. Now with GWT 2.0.x (GWT 2.0.3 specifically), the compiler compiles 6 browser-specific permutations and then the single-script linker refuses to link. I don't use GWT widgets. I only use com.google.gwt.user.client.Timer, com.google.gwt.core.client.JavaScrip...

GWT ListBox with HasValue and @UiTemplate

I am trying to use ListBox with HasValue interface implemented, I got code / idea from the following link and I made the my own list box class http://turbomanage.wordpress.com/2010/04/01/selectonelistbox-for-use-with-gwtmvp/ Now the problem is I am using @UiTemplate in my Views and I am finding it difficult to cast ListBox to this ne...

Translating GWT MVP Pattern to Vaadin

After several months developing an application based on GWT, using MVP pattern + Hibernate, I've come to a point where every small change in the application is a pain, and the widgets look very poor. I've also evaluated Vaadin, and it looks very promising. The way that databinding allows me to forget DTO conversion, seems interesting, ...

How can I use @UIBinder with CheckBox ValueChangeEvent?

I am trying to get this to work: @UiField CheckBox showDeleted; @UiHandler("showDeleted") public void onShowDeletedClicked(ValueChangeEvent<Boolean> ev) { ... } I get these errors from the GWT Compiler: Invoking generator com.google.gwt.uibinder.rebind.UiBinderGenerator [WARN] The method 'getAssociatedType()' in 'ValueChangeEven...

Does anyone exist who has used JBoss Errai in their projects?

I am searching GWT Design to setup project. I could use MVP(GWTP) or JBoss Errai. I haven't decided yet. Is there anyone who experienced in one of these? You can give advantages and disadvantages of these frameworks. ...

How can I launch more than one debug session in Eclipse from a single click?

I'm currently writing a GWT application through Eclipse. Eclipse is used for development but I use the m2eclipse plugin and a Maven pom.xml with the GWT plugin to build & run it. When I need to debug the app I must: Invoke "Run As ..." on a Maven project (via m2eclipse) "war:exploded gwt:debug". This launches GWT's app server and wait...

How do I create a documentFragment in GWT?

Creating a document fragment using plain Javascript is dead simple: var docFragment = document.createDocumentFragment();. However, in GWT, this does not appear to be available, though there is a DocumentFragment interface in package com.google.gwt.xml.client that does not appear to be applicable. Does anyone know of a way, either using ...

GWT DialogBox - sizing problem when animation is enabled

GWT client code: DialogBox dialog = new DialogBox(); dialog.setAnimationEnabled(true); SimplePanel panel = new SimplePanel(); panel.setPixelSize(800, 600); dialog.setWidget(panel); dialog.center(); with the above code the width of the dialog is not set properly - the dialog is cut off at about 400 px. Without animation enabled it wo...

How to set up binding for an array with Gwittir and GWT?

I have an list of checkboxes on a GWT widget using Gwittir. I want to bind these checkbox values in my view to some values in my Model so that I can tell which ones are selected. How can I set up a binding to do this? For a single value (one not in an array), I've been doing this: Binding binding = new Binding(); binding.getChildren...

GWT and Hibernate NoClassDefFoundError

Hi, When i try to make an RPC call to the server i get the following error message ** WebModule[/ProjectName]Exception while dispatching incoming RPC call java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Enhancer** Is this any classpath issue?or do i need to include any lib file or something in my project? I tried searching for a s...

Does GWT and/or SmartGWT provide an implementation of CSS selectors?

I've seen GWT's getElementById, but I'm looking for something a lot more flexible/powerful. I'd prefer CSS selectors, but an XPath interface would do in a pinch. Thanks. ...

GWT focus on button in dialog

I'm having a terrible time trying to manage focus on a GWT dialog. I'm trying to put together a very keyboard-friendly interface, and so when my dialog comes up (a simple Yes/No/Cancel affair) I need to have keyboard focus automatically shift to the "Yes" button. Yet despite my best efforts I can't seem to wrangle the focus where it need...

storing login state without a session (GWT)?

I just thought about writing a GWT app that just works as a client for a RESTful web service. The web service requires HTTP basic authentication for each call. Since the client is not 'connected' with the server over a session, I have to remember the authentication credentials on the client side. I could do this within the GWT applicati...

How to embed jwplayer into google web toolkit application?

Hi all, glad to ask my first question in Stack Overflow :) At work I'm developing a google web toolkit application and I need to embed a jwplayer inside it. Do you have any suggestion about how to achieve this? I found gwt2swf but so far I couldn't make it work. I have written this: SWFWidget jwplayer = new SWFWidget("player.swf"); ...

GWT Visualization best practice

Hi, I'm new with Google Visualization for GWT and I need help. Can someone tell me which is best pratice to transfer DataTable (data for visualization) with GWT RPC. Cause DataTable is not serializable, and I have a lot of data. I want to use GWT RPC cause I use Java on the server side. I know there is DataTable.toJson method in vis...