I create a dynamic number of radio buttons in my GWT
public void createTestList(ArrayList<Test> result){
for(int i =0 ; i<result.size();i++){
int id = result.get(i).getTestId();
RadioButton rd = new RadioButton("group", result.get(i).getTestType());
verticalPanel.add(rd);
}
where Test is my Entity class.
I get 4 different types of radio buttons in my view. Now, if I select any of the switches, first I need to get the identifier of the selected radio button, how is this possible?
secondly How can I check which of several radio buttons is selected?
thank
source
share