gwt2

Why does GWT 2.7 discontinue the GWT Designer?

杀马特。学长 韩版系。学妹 提交于 2019-12-01 08:46:31
As per GWT 2.7.0 (RC1) Release Note , GWT Designer is deprecated. I use the tool for some complex UI design in my project. Just don't know why this happens and what are alternatives without it. appbootup The GWT Designer is no longer the focus of the GWT Steering Committee (Members include Google, Vaadin, Sencha etc ) As stated the code is open sourced and if anybody is interested they can take ownership of it to revive it. Going back in history Google bought the company that built the designer and utilised some parts of it initially and later on abandoned the designer with very little commits

How to limit the available Date ranges with the com.google.gwt.user.datepicker.client.DateBox

核能气质少年 提交于 2019-11-30 14:00:46
I need to limit what Dates a user can pick from the com.google.gwt.user.datepicker.client.DateBox . I can't seem to figure out how to limit the min Date so they can't pick past dates. If I can't do this with com.google.gwt.user.datepicker.client.DateBox is there an alternative DateBox widget that will allow me this kind of flexibility? Based on the suggestions I received, here is what I came up with that works on limiting the selectable dates to only the current day and after. This works on GWT 2.1.1 final DateBox dateBox = new DateBox(); dateBox.addValueChangeHandler(new ValueChangeHandler

Running GWT Speedtracer without Jetty

拥有回忆 提交于 2019-11-30 10:35:08
We are trying to run the GWT (2.1) Speedtracer, but have trouble with it, since Jetty doesn't accept our JDBC resources (they work fine in Tomcat) - probably because the JAR containing the drivers is not found by it. Is there a way to make the GWT speedtracer run without the Jetty Server? Or how do I make the web.xml/context.xml compatible with both Tomcat and Jetty? I would prefer to run it in Jetty - as long as this won't cause problems with tomcat. If you want to use Tomcat: The GWT documentation mentions , that you can use Speed Tracer on the server-side with the SpringSource tc Server

What is the best approach towards styling GWT applications?

一世执手 提交于 2019-11-30 07:09:29
General approach in GWT is to use Panels and then apply custom CSS themes to get a customized look. While I can achieve a certain extent of personalization of my GWT app through CSS tinkering, I was wondering how others generally approach styling. Some of the suggestions I came across the web were to manage layout with plain HTML, through use of HTMLPanel's. This way one can straightaway use the HTML mock-up within the application without having to code all the layout. So what in your opinion is the best and least painful way to approach layout and custom styling of GWT application? It all

How to use the GWT editor framework for validation?

倖福魔咒の 提交于 2019-11-30 04:47:49
I am trying to integrate with the new GWT Editor framework of GWT 2.1.0. I also want to add my validation checks into the framework. However, I am struggling to find a decent example how to do this. For the moment I have the following code: <!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent"> <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui" xmlns:e="urn:import:com.google.gwt.editor.ui.client"> <ui:with type="be.credoc.iov.webapp.client.MessageConstants" field="msg" /> <g:HTMLPanel> <e:ValueBoxEditorDecorator ui:field=

RequestFactory theory: Why is Locator<>.find() being called so often?

这一生的挚爱 提交于 2019-11-30 04:01:05
I'm new to RequestFactory but with generous help of Thomas Broyer and after reviewing documents below it's getting much better :) Getting Started with RequestFactory Request Factory Moving Parts RequestFactory changes in GWT 2.4 But could you please explain why Locator<>.find() is being called so unnecessarily (in my opinion) often ? In my sample project I have two entities Organization and Person that maintain parent-child relationship. When I fetch Organization Objectify automatically fetches child Person. Also I created two methods in my service layer findOrganizationById and

Running GWT Speedtracer without Jetty

▼魔方 西西 提交于 2019-11-29 15:47:44
问题 We are trying to run the GWT (2.1) Speedtracer, but have trouble with it, since Jetty doesn't accept our JDBC resources (they work fine in Tomcat) - probably because the JAR containing the drivers is not found by it. Is there a way to make the GWT speedtracer run without the Jetty Server? Or how do I make the web.xml/context.xml compatible with both Tomcat and Jetty? I would prefer to run it in Jetty - as long as this won't cause problems with tomcat. 回答1: If you want to use Tomcat: The GWT

What is the best approach towards styling GWT applications?

北战南征 提交于 2019-11-29 09:48:09
问题 General approach in GWT is to use Panels and then apply custom CSS themes to get a customized look. While I can achieve a certain extent of personalization of my GWT app through CSS tinkering, I was wondering how others generally approach styling. Some of the suggestions I came across the web were to manage layout with plain HTML, through use of HTMLPanel's. This way one can straightaway use the HTML mock-up within the application without having to code all the layout. So what in your opinion

GWT - did you forget to inherit a required module?

一曲冷凌霜 提交于 2019-11-29 09:08:11
In my GWT application , on the client side Java file, I have written a line to print the Locale: System.out.println(Locale.getDefault()); Here Locale is an instance of java.util.Locale. I'm getting an exception: 09:31:53.656 [ERROR] [stockwatcher] Line 167 No source code is available for type java.util.Locale; did you forget to inherit a required module? Surprisingly, in this class I've also used java.util.ArrayList and java.util.Date but I did not get any exception for those classes. What am i doing wrong here? The client-side of GWT does not have access to the whole Java API. Java.util

Drag and Drop in GWT 2.4

ぃ、小莉子 提交于 2019-11-29 08:45:52
问题 I have a custom widget that is actually an image, and i would like to be able to drag it inside an AbsolutePanel and get its coordinates every time. I would like to use the new DND API from GWT 2.4, but i'm having a hard time to implement it. Can someone propose the basic steps i must take? 回答1: The new DnD API introduced with GWT 2.4 doesn't currently support the AbsolutePanel (see the implementations of the HasAllDragAndDropHandlers interface). Looking at the implementation of FocusPanel it