GWT cannot know how many instances of your component you'll instantiate in 
the lifetime of your application, so it doesn't make it easy to give widgets 
an ID. It's still possible though (myWidget.getElement().setId("myId"), 
which supposes you know what you're doing).

See also 
https://github.com/stubbornella/csslint/wiki/Disallow-ids-in-selectors (please 
read the linked blog post, and also follow links from there)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/xhCMtE-6eT8J.
To post to this group, send email to google-web-toolkit@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