Hello,
I am trying to include a radiobutton in a menuitem. When the menuItem
is clicked, the checked state of the radiobutton (and other
radiobuttons in the same group) should be updated.
My design roughly lookes like this.
public class RadioMenuItem extends MenuItem {
public RadioMenuItem {
...
button = new RadioButton( "group", text );
String html = button.getElement().getInnerHTML();
this.getElement().setInnerHTML( html );
...
}
}
in the Command.Execute of the MenuItem I am trying to change the value
of the radiobutton. (GWT does not support the html label for feature).
I have already tried
button.setChecked(true);
button.setValue(true);
button.setValue(true, true);
but none of them updates the radio button state.
If I click the radiobutton, everything works fine as this is by
default supported in GWT, however if the label of the radiobutton is
clicked nothing happens. My Command.Execute method is executed, but
the state does not change.
Any ideas are welcome.
Cheers
Tom
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---