Selecting Dynamically Created Radio Buttons from a Table
I have already succeeded in selecting the correct radio button from a pre defined table and radio buttons created using the IDE by using code like this:
String stringRadioButtonEnabled = (String) radioButtonActivated.getSelected("radioButtonGroupActivated");
I'm attempting to figure out which radio button was selected from a dynamically programmed table and radio buttons. I attempted to generate the radio buttons in the table like this:
// Create the Radio Button Column
TableColumn tableColumnRadioButtons =new TableColumn();
tableColumnRadioButtons.setId("tableColumnRadioButtons");
// Add the Column to the table row group
rowGroup.getChildren().add(tableColumnRadioButtons);
RadioButton radiobuttonEnabled =new RadioButton();
radiobuttonEnabled.setValueBinding("radioButtonGroupActivatedDynamic", getApplication().createValueBinding("#{user.radioButtonActivatedDynamic}"));
radiobuttonEnabled.setSelectedValue("#{currentRow.value['user.name']}");
tableColumnRadioButtons.getChildren().add(radiobuttonEnabled);
Do I need to be generating my radio buttons differently? Or is there a specific way I should be retrieving the information?

