3.2. Updating the HTML

Every GWT application has at least, and 99% of the time only, one HTML page. It can contain anything you could normally have in an HTML file: images, hyperlinks, div objects, other JavaScript code, plain text, and so on. This is great for flexibility because it means you can incrementally GWT-ify an existing web page/application, adding GWT where needed. You can gradually swap out functionality for GWT implementations or, as you’ll do here, put content in the page that the GWT application can use. Equally, the HTML file could contain no content; that is, it could be a blank page on which your GWT application will create everything.

As we noted in chapter 2, the file must contain a link to your GWT application’s bootstrap ...

Get GWT in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.