I tried a test using setPropertyString, and cannot get it to work.  Am I
wrong in thinking that 'this[name] = value;' is not useful in this case b/c
placeHolder should be an actual element attribute rather than a property
that is referenced in js?

Daniel

On Thu, Dec 23, 2010 at 9:12 AM, Thomas Broyer <[email protected]> wrote:

> I'd rather use setPropertyString though, given that there's a property
> reflecting the attribute:
> yourField.getElement().setPropertyString("placeholder", "<content of
> placeholder>");
>
> (i.e. in JS, you'll more likely write myInputText.placeholder="<content of
> placeholder>" than myInputText.setAttribute("placeholder", "<content of
> placeholder>"))
>
> --
> 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]<google-web-toolkit%[email protected]>
> .
> 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 [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.

Reply via email to