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
71
votes
7 answers

Achieving min-width with viewport meta tag

I would like my webpage's viewport width to equal device-width as long as device-width > 450px, or 450px otherwise (my layout dynamically scales, but doesn't look good below 450px wide). The following two meta tags work well on tablets, where the…
Tom G
  • 2,025
  • 3
  • 21
  • 32
67
votes
4 answers

GWT Custom Events

Hey I have a problem getting my head around how custom GWT event Handlers work. I have read quite a bit about the topic and it still is some what foggy. I have read threads here on Stackoverflow like this one GWT Custom Event Handler. Could someone…
Ciarán
  • 673
  • 1
  • 6
  • 4
67
votes
8 answers

What's the difference between boolean and Boolean in Java?

I would like to understand the difference between the Boolean and boolean types in Java, specifically as they relate to GWT. I know that methods are not supported but I want more info if it is available.
roundcrisis
  • 17,276
  • 14
  • 60
  • 92
61
votes
7 answers

How do I select only visible elements using XPath?

I have a GWT application for which I'm trying to write some tests using Selenium. I'm using XPath to identify the elements on the page for the tests. Using id won't work as the id values are auto-generated by GWT and can change. Things started…
David Webb
  • 190,537
  • 57
  • 313
  • 299
60
votes
8 answers

Multiple pages tutorial in Google Web Toolkit (GWT)

I just started learning Google Web Toolkit (GWT). How do I make different HTML pages in my GWT application? For example, I want to create an application for a book store. In this application I'll have three pages: Home pages where I will welcome…
Maksim
  • 16,635
  • 27
  • 94
  • 135
59
votes
13 answers

Json <-> Java serialization that works with GWT

I am looking for a simple Json (de)serializer for Java that might work with GWT. I have googled a bit and found some solutions that either require annotate every member or define useless interfaces. Quite a boring. Why don't we have something really…
amartynov
  • 4,125
  • 2
  • 31
  • 35
59
votes
8 answers

GWT module may need to be (re)compiled REDUX

When running in compiled mode I get this dreaded GWT Module 'mymodule' may need to be (re)compiled dialog message. I've compiled a list of the things that others have suggested to try when given this error message by GWT running in compiled mode. …
James A Wilson
  • 14,611
  • 5
  • 29
  • 31
58
votes
2 answers

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?
RodeoClown
  • 13,338
  • 13
  • 52
  • 56
57
votes
10 answers

Differences between GWT and Vaadin

Can anyone suggest whether "GWT" or "Vaadin" are a better choice to design an application? Also: what are the differences in coding style?
sundhar
  • 835
  • 2
  • 9
  • 12
56
votes
3 answers

Replacing com.google.inject with javax.inject

Is it true that javax.inject annotations can function as direct replacements for com.google.inject? So that, if I replaced all my current guice/gin annotations with those from javax.inject, my app would compile and run just fine? First, does…
Blessed Geek
  • 21,058
  • 23
  • 106
  • 176
55
votes
10 answers

ClassNotFoundException: org.slf4j.LoggerFactory

I am trying to run GWT RequestFactory and facing this error: ClassNotFoundException: org.slf4j.LoggerFactory I have tried to download slf4j-api-1.3.1.jar but it didnt resolve the issue Any idea exactly which jar I need to download ?
junaidp
  • 10,801
  • 29
  • 89
  • 137
54
votes
1 answer

What are the possible user.agent values in gwt.xml?

I was wondering what are the possible user.agent values in gwt.xml. I found some of them but unfortunately not the complete list. Chrome - safari Firefox - gecko1_8 Internet Explorer 6 - ie6 What are the others?? Opera, ie7, ie8, ... etc.
Kayser
  • 6,544
  • 19
  • 53
  • 86
54
votes
4 answers

GWT: Capturing URL parameters in GET request

I need to build a GWT application that will be called by an external application with specific URL parameters. For example: http://www.somehost.com/com.app.client.Order.html?orderId=99999. How do I capture the orderId parameter inside the GWT…
Otavio
  • 1,157
  • 4
  • 12
  • 19
52
votes
5 answers

Maven GWT 2.0 and Eclipse

Does anyone know of a good guide for creating a project with the new 2.0 release of GWT using maven and eclipse? I am running into a lot of problems getting them to play nicely together. For what it's worth, I can create a gwt project using the…
Lehane
  • 47,588
  • 14
  • 53
  • 53
50
votes
4 answers

What does compiling permutation mean in GWT?

When a Web App Project is compiled, 6 permutations are compiled. What are those permutations, and what do they mean?
theTuxRacer
  • 13,709
  • 7
  • 42
  • 59