blob: 15b8c8fb7c40251d0ef0fa54126896629ea86c73 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- $Id$ -->
<html>
<head>
<title>Radio</title>
<link rel="stylesheet" type="text/css" href="Tapestry.css" title="style">
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left"><A href="PropertySelection.html"><IMG alt=PropertySelection src="common-images/prev.png"></a></td>
<td align="middle"><A href="index.html"><IMG alt=Home src="common-images/home.png"></a></td>
<td align="right"><A href="RadioGroup.html"><IMG alt=RadioGroup src="common-images/next.png"></a></td>
<tr>
<tr>
<td colspan="3"><hr></td>
</tr>
<tr>
<td colspan="3">
<table border="0" cellpadding="4" cellspacing="4" width="100%">
<tr valign="top">
<td>
<table>
<tr>
<td><font size="+2"><b>Radio</b></font></td>
</tr>
<tr>
<td>
<A href="../api/org/apache/tapestry/form/Radio.html">org.apache.tapestry.form.Radio</a>
</td>
</tr>
</table>
</td>
<td>
<table align="right" valign="middle" bgcolor="#c0c0c0" cellpadding="8">
<tr>
<td><input type="radio" name="radio">Radio</td>
</tr>
</table>
</td>
</tr>
<tr valign="center">
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2">
<b>Description</b>
<br>
Provides a HTML &lt;input type="radio"&gt; form element. The Radio component
must be wrapped (possibly indirectly) inside a
<A href="RadioGroup.html">RadioGroup</a> component.
<p>
Generally the <A href="PropertySelection.html">PropertySelection</a>
component is used in preference to the Radio and RadioGroup, except
in special cases.</p>
</td>
</tr>
<tr>
<td colspan="2">
<b>See Also</b>
<br>
<A href="Form.html">Form</a>,
<A href="Option.html">Option</a>,
<A href="PropertySelection.html">PropertySelection</a>,
<A href="RadioGroup.html">RadioGroup</a>,
<A href="Select.html">Select</a>
</td>
</tr>
<tr>
<td colspan="2">
<b>Parameters</b>
<br>
<table border="1" cellpadding="4" cellspacing="4" class="parameters">
<tr>
<th>Name</th>
<th>Type</th>
<th>Direction</th>
<th>Required</th>
<th>Default</th>
<th>Description</th>
</tr>
<tr>
<td>value</td>
<td>Object</td>
<td>in</td>
<td>no</td>
<td>&nbsp;</td>
<td>
The value is used to determine if the radio button is initially selected
(when rendering) and is the value assigned to the selected parameter when
the form is submitted, if the HTML radio button is selected.
</td>
</tr>
<tr>
<td>disabled</td>
<td>booleant</td>
<td>in</td>
<td>no</td>
<td>false</td>
<td>
If true, then the Radio is disabled. It will write a "disabled" attribute
into its tag when rendering, and will not update its selected binding.
<p>
A binding may also be disabled if its containing
<A href="RadioGroup.html">RadioGroup</a> is disabled.
<p>
The "disabled" attribute is ignored by
Netscape Navigator 4.</p>
</td>
</tr>
</table>
<P>
Body: <STRONG>removed</STRONG><BR>
Informal parameters:<STRONG>allowed</STRONG><br>
Reserved parameters: "checked", "name", "type"
</P>
</td>
</tr>
<tr>
<td colspan="2">
<b>Examples</b>
<p>
See <a href="RadioGroup.html">RadioGroup</a> for a Radio component example.</p>
</td></tr></table>
</td></tr>
<tr>
<td colspan="3"><hr></td>
</tr>
<tr>
<td align="left"><A href="PropertySelection.html"><IMG alt=PropertySelection src="common-images/prev.png"></a></td>
<td align="middle"><A href="index.html"><IMG alt=Index src="common-images/home.png"></a></td>
<td align="right"><A href="RadioGroup.html"><IMG alt=RadioGroup src="common-images/next.png"></a></td>
</tr>
</table>
</body>
</html>