Runtime components : Channels components : HTML Channel : Reference : Custom JSP tags : RadioButtonTag
  
RadioButtonTag
A RadioButtonTag references a DataField in the context hierarchy and creates an HTML radio button element.
Mandatory attributes
dataName, value
Attributes
dataName
Name of the DataField in the context hierarchy. If the DataField is read only, in Internet Explorer the radio button is also read only.
When creating the radio button, the toolkit retrieves the value of the DataField in the context and checks the radio button if this value matches the value attribute. If a form containing a radio button is submitted, the context's element named dataName is set with the radio button value.
value
Value of the radio button
style
Style for the radio button
Default value: null
custom
Adds attributes to the input element. The following is the format of this attribute:
custom="att1Name=\"att1Value\
"att2Name=\"att2Value\"...
Default value: null
Example
<H1>Using the RadioButton Tag</H1>
<dse:form name="f1" nextEventName="ok">
<table border="1" width="75%">
<tr><td>
<dse:radio dataName="maritalStatus1" value="S"/>Single</td><td>
<dse:radio dataName="maritalStatus2" value="S"/>Single<br>
<dse:radio dataName="maritalStatus2" value="M"/>Married<br>
<dse:radio dataName="maritalStatus2" value="D"/>Divorced<br>
<dse:radio dataName="maritalStatus2" value="W"/>Widowed<br>
</td></tr>
<tr><td>
<dse:radio dataName="readOnlyMaritalStatus2" value="S"/>Single</td><td>
<dse:radio dataName="readOnlyMaritalStatus2" value="S"/>Single<br>
<dse:radio dataName="readOnlyMaritalStatus2" value="M"/>Married<br>
<dse:radio dataName="readOnlyMaritalStatus2" value="D"/>Divorced<br>
<dse:radio dataName="readOnlyMaritalStatus2" value="W"/>Widowed<br>
</td></tr>
</table>
</dse:form>
Go up to
Custom JSP tags