gwt

Best data binding solution for GWT

北战南征 提交于 2019-12-29 11:36:08
问题 Have you ever used one of the many half-baked data binding solutions for GWT? If so, how well did it work? I'd like to stop rolling my own bindings for GWT but there's no clear winner in the data binding space. I'd prefer to use something with a future e.g. GWT Incubator but there's nothing there yet. I use GWTDesigner and love it but it doesn't seem to have a solution for this either. Its a pretty fundamental missing feature. Do you know if the GWT team plans to add support for this? In that

Eclipse freezing at startup - before loading workspace

断了今生、忘了曾经 提交于 2019-12-29 10:11:07
问题 First thing on a morning, just after I switch on my PC (Windows XP) and start my Eclipse it simply shows the splash screen and then freezes. After about 20 minutes it will then ask me which workspace to load. The problem was happening with 3.5 and 3.6 Eclipse. With the 3.6 Eclipse installation I only have the standard PDE install + Google plugin (for GWT development) + Subclipse. Because I have it configured to ask me for the workspace I can see its not workspace or project related. I suspect

Should I use Vaadin Framework [closed]

旧时模样 提交于 2019-12-29 10:06:42
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I just tried to play with Vaadin Framework and it seems to me very easy to use. Plus what I like about his framework is that it is built on top of Google Web Toolkit (GWT). What do you think, should I continue using this framework or it's better to stick with GWT? 回答1: Hey.

GWT: DataGrid - set height 100% not rendering properly

ⅰ亾dé卋堺 提交于 2019-12-29 08:01:29
问题 I am working with layout panels and datagrid. When I set the datagrid height to 100%, Grid is not rendering. My panel hierarchy looks like the following image Am I doing it properly or I messed up the panel hierarchy??? Parent panel is the simple layout panel, inside that I have split layout panel -> scrollpanel -> datagrid 回答1: DataGrid requires to be put in a LayoutPanel or Panel that implements the ProvidesResize interface to be visible. ScrollPanel implements that interface. Furthermore

Arbitrary precision Float numbers on JavaScript

半世苍凉 提交于 2019-12-29 07:46:47
问题 I have some inputs on my site representing floating point numbers with up to ten precision digits (in decimal). At some point, in the client side validation code, I need to compare a couple of those values to see if they are equal or not, and here, as you would expect, the intrinsics of IEEE754 make that simple check fails with things like (2.0000000000==2.0000000001) = true. I may break the floating point number in two longs for each side of the dot, make each side a 64 bit long and do my

Why is there no isFocused() in GWT?

北战南征 提交于 2019-12-29 07:32:09
问题 In a programming scenario, I needed to check if my GWT textbox was focused or not. I ended up adding a boolean and a pair of Focus & BlurHandler to manually keep the focus state which makes me wonder why is there no such method that returns if a focusable component is focused in gwt? 回答1: Because there wasn't any cross-browser way of doing it until a few years ago (Firefox 3, Safari 4, to point at the last players in the game having added support document.activeElement ). GWT still officially

GWT - did you forget to inherit a required module?

折月煮酒 提交于 2019-12-29 07:23:32
问题 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

What is the use GWT generator?

谁说胖子不能爱 提交于 2019-12-29 05:03:05
问题 I have seen that GWT framework is having generator feature. In what case we have to use gwt generator option and why it is needed? Can anyone tell me simply why,what is gwt generator? Done some googling. But not much helpful stuffs... 回答1: From this tutorial: Generators allow the GWT coder to generate Java code at compile time and have it then be compiled along with the rest of the project into JavaScript. This tutorial uses the example of generating a Map of values at compile time based on a

How to dynamically compute a list of colors?

孤者浪人 提交于 2019-12-28 18:08:15
问题 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. 回答1: Another version of my solution with ranges: List<int> getUniqueColors(int amount) { final int lowerLimit = 0x10; final int upperLimit = 0xE0; final int colorStep = (upperLimit-lowerLimit)/Math.pow(amount,1f/3); final List<int> colors =

How to override GWT obfuscated style for DataGrid header

五迷三道 提交于 2019-12-28 18:08:10
问题 I'm trying to figure out how to override the dataGridHeader style defined in DataGrid.css! GWT core. The GWT style name is obfuscated with adler32 so I can't simply use .dataGridHeader in my css. In my case I wish a simple change of white-space:normal. I've seen may articles here about injecting css but they all appear to be class level rather than a sub style used within a component like DataGrid. How do I override a header style used within a component like DataGrid? 回答1: Just like with any