【发布时间】:2010-04-08 10:27:42
【问题描述】:
我从设计师那里得到 html。 我有 2 个单选按钮。
我喜欢从 GWT 获取单选按钮的数据。 我需要radioButton的引用。
RadioButton rb = RadioButton.wrap(Dom.getElementById("abc"));
但是错误。
我该如何解决这个问题
【问题讨论】:
我从设计师那里得到 html。 我有 2 个单选按钮。
我喜欢从 GWT 获取单选按钮的数据。 我需要radioButton的引用。
RadioButton rb = RadioButton.wrap(Dom.getElementById("abc"));
但是错误。
我该如何解决这个问题
【问题讨论】:
RadioButton 没有称为wrap() 的方法——请参阅docs for RadioButton。
您可能想试试SimpleRadioButton,它确实有一个wrap() -- docs。
【讨论】: