Hi everyone,
I'm new to GWT and developing a sample app. I want it to display
simple questions that the user answers by clicking radio buttons. Some
questions have two radio buttons, some have more. For example, a two
button question:
The boy
o go o goes
to the store
And a three button question:
They took
o there o their o they're
time answering the question
So, how do I use GWT to vary the number of radio buttons for each
question?
I had thought the way was to use Java arrays:
RadioButton arby[] = null;
arby[0] = new RadioButton(groupName, "go);
arby[1] = new RadioButton(groupName, "goes");
But this doesn't work. Compiles but no radio buttons appear at all.
What is the right way?
Perhaps more generally, what is the way to create objects that refer
to page elements whose number is known at runtime?
Thanks!
-- Jon
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---