The following is a code snippet that shall help you create a simple yes- no radio button when copy pasted into XPage source code.
<xp:radioGroup id="radioGroup1" value="" layout="pageDirection">
<xp:selectItem itemLabel="yes" itemValue="y"></xp:selectItem>
<xp:selectItem itemLabel="no" itemValue="n"></xp:selectItem>
<xp:eventHandler event="onclick" submit="true" refreshMode="complete">
<xp:this.action><![CDATA[#{javascript://var radioVal=getComponent("radioGroup1").getValue();
//getComponent("inputText1").setValue(radioVal);}]]></xp:this.action>
</xp:eventHandler>
</xp:radioGroup>
No comments:
Post a Comment