javascript - how to identify which radio button is selected in icefaces? -
i have 3 radio buttons , want determine radio button selected farther processing.i have tried
document.getelementbyid("minselected"); document.getelementbyid("minselected").isselected(); and
document.getelementbyname("min");
but not working.
if using icefaces dont have utilize javascript tweek check box value.
try using ice:selectoneradio component. sample code given below
<ice:selectoneradio layout="pagedirection" partialsubmit="true" value="#{mybean.mybuttonvalue}"> <f:selectitem id="1" itemlabel="val1" itemvalue="val1" /> <f:selectitem id="2" itemlabel="val2" itemvalue="val2" /> <f:selectitem id="3" itemlabel="val3" itemvalue="val3" /> </ice:selectoneradio>
where mybean bean name , mybuttonvalue string variable in bean getter setter
when submit form itemvalue in bean on variable mybuttonvalue
javascript radio-button icefaces-1.8
No comments:
Post a Comment