Re: how to access all checkboxes that have a name that begins with abc?

2011-07-16 Thread Dennis Haupt
and how do i get them in the first place? i don't create them, they already exist on the page Am 15.07.2011 17:59, schrieb dreamer: One way is build your own collection (ArrayList) and make accessible, with setter and getter ,just like in any java class. On Jul 15, 8:07 am, Dennis Haupt

Re: how to access all checkboxes that have a name that begins with abc?

2011-07-16 Thread Dennis Haupt
thx Am 15.07.2011 18:29, schrieb Aidan O'Kelly: import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.NodeList; . . . NodeListElement elementList = Document.get().getElementsByTagName(input); This will give you a list of

how to access all checkboxes that have a name that begins with abc?

2011-07-15 Thread Dennis Haupt
hi community, i'm in a gwt module that is part of a bigger page, and i need to know which checkboxes that are on this page are selected. i know what the names of these boxes are, but i don't know how many there are. how can i a) get them all and b) find out which ones are checked from inside my

Re: how to access all checkboxes that have a name that begins with abc?

2011-07-15 Thread dreamer
One way is build your own collection (ArrayList) and make accessible, with setter and getter ,just like in any java class. On Jul 15, 8:07 am, Dennis Haupt d.haup...@googlemail.com wrote: hi community, i'm in a gwt module that is part of a bigger page, and i need to know which checkboxes that

Re: how to access all checkboxes that have a name that begins with abc?

2011-07-15 Thread Aidan O'Kelly
import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.NodeList; . . . NodeListElement elementList = Document.get().getElementsByTagName(input); This will give you a list of all HTML 'input' elements on the page, you can loop through

Aw: how to access all checkboxes that have a name that begins with abc?

2011-07-15 Thread Jens
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

Re: how to access all checkboxes that have a name that begins with abc?

2011-07-15 Thread Jeff Chimene
On 07/15/2011 08:59 AM, dreamer wrote: One way is build your own collection (ArrayList) and make accessible, with setter and getter ,just like in any java class. On Jul 15, 8:07 am, Dennis Haupt d.haup...@googlemail.com wrote: hi community, i'm in a gwt module that is part of a bigger