You could call setAttribute on the UiField.  This would look like the
following:

yourField.getElement().setAttribute("placeHolder","<content of
placeholder>");

Daniel


On Thu, Dec 23, 2010 at 8:41 AM, alexh <alexanderhar...@gmail.com> wrote:

> Hi,
>
> I was wondering there is a way to add an HTML5 attribute like
> placeholder to a text input tag within UIBinder or doing so otherwise
> in normal Java code.
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to