Re: how to access all checkboxes that have a name that begins with abc?
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 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 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 gwt entry point? -- 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-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.
Re: how to access all checkboxes that have a name that begins with abc?
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 all HTML 'input' elements on the page, you can loop through them and check the type/id/value of the element for the ones you are interested in. On Fri, Jul 15, 2011 at 4:07 PM, Dennis Haupt d.haup...@googlemail.com wrote: hi community, /v 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 gwt entry point? -- 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-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. -- Mit freundlichen Grüßen, Dennis Haupt Plettstrasse 73 81735 München Handy 0176/80130332 -- 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-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.
how to access all checkboxes that have a name that begins with abc?
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 gwt entry point? -- 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-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.
Re: how to access all checkboxes that have a name that begins with abc?
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 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 gwt entry point? -- 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-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.
Re: how to access all checkboxes that have a name that begins with abc?
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 them and check the type/id/value of the element for the ones you are interested in. On Fri, Jul 15, 2011 at 4:07 PM, Dennis Haupt d.haup...@googlemail.com wrote: hi community, /v 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 gwt entry point? -- 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-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. -- 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-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.
Aw: how to access all checkboxes that have a name that begins with abc?
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 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.
Re: how to access all checkboxes that have a name that begins with abc?
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 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 gwt entry point? gQuery will be a good tool choice -- 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-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.