concept dom in category gwt

appears as: DOM, DOM
GWT in Action

This is an excerpt from Manning's book GWT in Action.

If you fire up your favorite inspector, you can see what has happened in the DOM, check that the right scripts have been downloaded, and so on.

It’s worth noting that wrap methods don’t exist for all widgets, and they don’t wrap any existing event handling on the DOM element—so you’ll need to add event handling yourself in your GWT application. Also, if the wrapped element is removed from the DOM, you need to watch for that and call the RootPanel.detachNow method to ensure no memory leaks are introduced (this is covered more in chapter 4).

3.5.2. Manipulating the DOM directly

Most if not 99% of the time you’ll have no need to directly manipulate the DOM; you can do what you need using widgets and panels. This means you can generally live in a fairly protected world and let GWT worry about most issues you might encounter.

Listing 3.4. Accessing the DOM directly