Questions tagged [gwt]

GWT (formerly the Google Web Toolkit) is a development toolkit for building and optimizing complex browser-based applications. Its goal is to enable productive development of high-performance web applications without requiring the developer to be an expert in browser quirks, XMLHttpRequest, and JavaScript. GWT is used by many products at Google, including the new versions of AdWords and Groups. It's open source and completely free (Apache 2.0 licensed).

GWT (formerly the Google Web Toolkit) is a development toolkit for building and optimizing complex browser-based applications. Its core feature is the Java to JavaScript compiler.

The official docs cover all the basics and advanced topics – it's a great place to start and you'll often come back to it when you want to expand your knowledge of the framework. The docs are sprinkled with example code, but if that's not enough for you, there are always the samples that come with the GWT bundle.

For more esoteric topics the GWT Google Group might be of help. Latest stable version of GWT is 2.8.2 (2017-10-19)

Interesting links

Useful libraries

20828 questions
50
votes
4 answers

Threading in GWT (Client)

From what I understand, the entire client side of a GWT application is converted to Javascript when you build, therefore I suppose this question is related to both Javascript and the possibilities that GWT offers. I have a couple of dozen processes…
Federer
  • 33,677
  • 39
  • 93
  • 121
50
votes
2 answers

Java 8 support in GWT

This seems like a very basic question, but I searched high and low and have found almost no mention of it anywhere. So, I'll ask it here here. What is the current plan for supporting Java 8's new language constructs in GWT? In addition, what subset…
Yona Appletree
  • 8,801
  • 6
  • 35
  • 52
49
votes
1 answer

How to use the GWT EventBus

I wonder how to use the EventBus or whether there are some better solutions to send an Event through the project. Widget1 has a Button. Widget2 has a Label, that should change when I press the button. These widgets are in a…
Mark
  • 7,507
  • 12
  • 52
  • 88
49
votes
4 answers

How to do calendar operations in Java GWT? How to add days to a Date?

Since GWT does not provide the GregorianCalendar class, how to do calendar operations on the client? I have a Date a and I want the Date, which is n days after a. Examples: a (2000-01-01) + n (1) -> 2000-01-02 a (2000-01-01) + n (31) -> 2000-02-01
Witek
  • 6,160
  • 7
  • 43
  • 63
49
votes
5 answers

Is still GWT pertinent for new projects?

The question Why should I use jQuery instead of GWT? may be outdated (as its answers). And most of the other SO related questions may also be outdated nowadays. So, let's update the state of the art about GWT relevance for new projects. GWT is more…
oHo
  • 51,447
  • 27
  • 165
  • 200
48
votes
4 answers

Basic File upload in GWT

I'm trying to figure out how to upload one file using GWTs FileUpload widget. I'm using GWT and Google AppEngine with Java but I would like to upload file to my own Linux server. I have the following code already but now I can't figure out how to…
Maksim
  • 16,635
  • 27
  • 94
  • 135
45
votes
4 answers

GWT vs Dart - what are the main differences? Is Dart a potential replacement of GWT?

I'm trying to understand which of the two to use, having four main criteria Writer better, maintainable client JavaScript code, with ease of modern IDE (better content assist, better debugging) Cross Browser Less lock-in, can read the code…
Eran Medan
  • 44,555
  • 61
  • 184
  • 276
45
votes
6 answers

How to use GWT 2.1 Data Presentation Widgets

At the 2010 Google IO it was announced that GWT 2.1 would include new Data Presentation Widgets. 2.1M is available for download, and presumably the widgets are included, but no documentation has yet surfaced. Is there a short tutorial or example for…
George Armhold
  • 30,824
  • 50
  • 153
  • 232
43
votes
8 answers

GWT Custom Event Handler

Can someone give me an example of creating a custom set of an Event and a Handler. Say you have a Person object that you want your widgets to know if it got updated. You create a HandlerManager and now you have to create an Event and a Handler. How…
Nick
  • 1,156
  • 2
  • 13
  • 24
43
votes
15 answers

Eclipse freezing at startup - before loading workspace

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…
pillingworth
  • 3,238
  • 2
  • 24
  • 49
41
votes
13 answers

GWT - occasional com.google.gwt.user.client.rpc.SerializationException

we are haunted by occasional occurences of exceptions such as: com.google.gwt.user.client.rpc.SerializationException: Type 'xxx' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer.For…
user1946784
  • 1,397
  • 3
  • 14
  • 20
41
votes
3 answers

Guava libraries and GWT

Just discovered the Guava libraries project. Do these work with GWT?
jldupont
  • 93,734
  • 56
  • 203
  • 318
40
votes
7 answers

How to remove comma from number which comes dynamically in .tpl file

i want to remove comma from a number (e.g change 1,125 to 1125 ) in a .tpl file. The value comes dynamically like ${variableMap[key]}
Sree
  • 2,792
  • 8
  • 25
  • 33
39
votes
12 answers

String Formatter in GWT

How do I format my string in GWT? I made a method Formatter format = new Formatter(); int matches = 0; Formatter formattedString = format.format("%d numbers(s, args) in correct position", matches); return…
unj2
  • 52,135
  • 87
  • 247
  • 375
39
votes
8 answers

Clean way in GWT/Java to wait for multiple asynchronous events to finish

What is the best way to wait for multiple asynchronous callback functions to finish in Java before continuing. Specifically I'm using GWT with AsyncCallback, but I think this is a generic problem. Here's what I have now, but surely there is cleaner…
gerdemb
  • 11,275
  • 17
  • 65
  • 73