If we want our radio buttons to behave as a groupwe must programitically give same name using setName() method for each radion button.
ex: In CO PR: while page rendering we have to make all radio buttons as group like below.
OAMessageRadioButtonBean appleButton=(OAMessageRadioButtonBean )webBean.findChildRecursive("appleId");
appleButton.setName("fruitRadioGroup");
appleButton.setValue("apples");
OAMessageRadioButtonBean orangeButton =(OAMessageRadioButtonBean )webBean.findChildRecursive("orangeId");
orangeButton.setName("fruitRadioGroup");
orangeButton.setValue("oranges");
in CFR CO:
String value= pageContext.getParameter("fruitRadioGroup");
No comments:
Post a Comment