It is my experience that the onChange event of the RadioGroup (and CheckboxGroup) fire when the page loads. Surely this can’t be correct? Or am I missunderstanding the point of the onChange event?
Example code - check the server log and you’ll see that the onChange event fires 3 times each for radio and checkbox controls:-
<xp:dominoDocument var="document1"
formName="ApplicationProfile">
</xp:dominoDocument>
</xp:this.data>
<xp:radioGroup id="radioGroup1" layout="pageDirection"
value="#{document1.MIPStatus}">
<xp:this.onchange><![CDATA[#{javascript:print( "radioGroup1 onChange has fired" );}]]></xp:this.onchange>
<xp:selectItem itemLabel="option1"
itemValue="Bulk" id="selectItem1">
</xp:selectItem>
<xp:selectItem itemLabel="option2"
itemValue="Retail" id="selectItem2">
</xp:selectItem>
<xp:selectItem
itemLabel="option3" itemValue="Both"
id="selectItem3">
</xp:selectItem>
</xp:radioGroup>
<xp:br></xp:br>
<xp:checkBoxGroup id="checkBoxGroup1"
value="#{document1.MIPStatus}">
<xp:this.onchange><![CDATA[#{javascript:print( "checkBoxGroup1 onChange has fired" );}]]></xp:this.onchange>
<xp:selectItem itemLabel="option1"
itemValue="Bulk" id="selectItem4">
</xp:selectItem>
<xp:selectItem itemLabel="option2"
itemValue="Retail" id="selectItem5">
</xp:selectItem>
<xp:selectItem
itemLabel="option3" itemValue="Both"
id="selectItem6">
</xp:selectItem></xp:checkBoxGroup>