I guess you have to use something like:
for(Element e : Document.get().getElementsByTagName("input")) {
if(e instanceof InputElement) {
InputElement ie = (InputElement) e;
if("checkbox".equals(ie.getType()) && ie.getName().startsWith("abc") &&
(ie.isChecked() || ie.isDefaultChecked())) {
//do your stuff here
}
}
}
I haven't tried it but it should check every input element if its a
checkbox, its name starts with "abc" and if its checked.
--
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/-/8SneK4Q-tYYJ.
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.