The new Text2<T> component replaces the Text<T> component. All DomUI components that before used/created Text<T> components now use Text2<> instead.
The Text2<> component has mostly the same Java interface as the Text<> component, with the following exceptions:
The biggest difference is in the rendering of the component. The Text component itself was an input tag, so it always rendered as an <input> tag. This caused several issues.
The new Text2 component renders as the following structure:
This example shows as follows on the page (in error state, as in the example):
The component is wrapped inside a div with inline-block, this div contains a table with one cell for the input, and optionally other cells that can contain buttons.