It's called "placeholder". If you don't have a requirement that it works in
all browsers, then HTML5 has an attribute for that (which actually has its
origins in WebKit, HTML5 is only standardizing it), called… placeholder!
So you can use myTextBox.getElement().setPropertyString("placeholder",
"Enter your name");
If you want it to work cross-browser, then you'll have to resort to tricks
and hacks. Have a look at the search box from the Expenses sample.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.