Apache MyFaces HTML
Tag selectOneRadio


Allow the user to choose one option from a set of options.

Renders as an HTML table element, containing an input element for each child f:selectItem or f:selectItems elements. The input elements are rendered as type radio.

The value attribute of this component is read to determine which of the available options is initially selected; its value should match the "value" property of one of the child SelectItem objects.

On submit of the enclosing form, the value attribute's bound property is updated to contain the "value" property from the chosen SelectItem.

Unless otherwise specified, all attributes accept static values or EL expressions.


Tag Information
Tag Classorg.apache.myfaces.taglib.html.HtmlSelectOneRadioTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
idfalsefalsejava.lang.StringThe developer-assigned ID of this component. The ID must be unique within the scope of the tag's enclosing naming container (e.g. h:form or f:subview). This value must be a static value.
bindingfalsefalsejavax.el.ValueExpression
(must evaluate to javax.faces.component.UIComponent)
Identifies a backing bean property (of type UIComponent or appropriate subclass) to bind to this component instance. This value must be an EL expression.
renderedfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Boolean)
A boolean value that indicates whether this component should be rendered. Default value: true.
valuefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
The initial value of this component.
converterfalsefalsejavax.el.ValueExpression
(must evaluate to javax.faces.convert.Converter)
An expression that specifies the Converter for this component. If the expression is a static string or is a value expression which returns a String, the String is used as an ID to look up a registered Converter. If the value expression returns a Converter, then that object is used.
immediatefalsefalsejavax.el.ValueExpression
(must evaluate to boolean)
A boolean value that identifies the phase during which action events should fire. During normal event processing, action methods and action listener methods are fired during the "invoke application" phase of request processing. If this attribute is set to "true", these methods are fired instead at the end of the "apply request values" phase.
requiredfalsefalsejavax.el.ValueExpression
(must evaluate to boolean)
A boolean value that indicates whether a value is required. Default value: false.
converterMessagefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Text of the converter message.
requiredMessagefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Text which will be shown if a required value is not submitted.
validatorfalsefalsejavax.el.MethodExpression
(signature must match void myMethod(javax.faces.context.FacesContext, javax.faces.component.UIComponent, java.lang.Object))
A method which is invoked during the validation phase for this component. It is expected to check the submitted value for this component, and if not acceptable then report a validation error for the component.
validatorMessagefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Text which will be shown, if validation fails.
valueChangeListenerfalsefalsejavax.el.MethodExpression
(signature must match void myMethod(javax.faces.event.ValueChangeEvent))
A method which is invoked during postback processing for the current view if the submitted value for this component is not equal to the value which the "value" expression for this component returns. The phase in which this method is invoked can be controlled via the immediate attribute.
stylefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
CSS styling instructions.
styleClassfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
The CSS class for this element. Corresponds to the HTML 'class' attribute.
dirfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
The direction of text display, either 'ltr' (left-to-right) or 'rtl' (right-to-left).
langfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
The base language of this document.
titlefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
An advisory title for this element. Often used by the user agent as a tooltip.
onclickfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Script to be invoked when the element is clicked.
ondblclickfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Script to be invoked when the element is double-clicked.
onmousedownfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Script to be invoked when the pointing device is pressed over this element.
onmouseupfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Script to be invoked when the pointing device is released over this element.
onmouseoverfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Script to be invoked when the pointing device is moved into this element.
onmousemovefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Script to be invoked when the pointing device is moved while it is in this element.
onmouseoutfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Script to be invoked when the pointing device is moves out of this element.
onkeypressfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Script to be invoked when a key is pressed over this element.
onkeydownfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Script to be invoked when a key is pressed down over this element.
onkeyupfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Script to be invoked when a key is released over this element.
onblurfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Specifies a script to be invoked when the element loses focus.
onfocusfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Specifies a script to be invoked when the element receives focus.
onchangefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Specifies a script to be invoked when the element is modified.
onselectfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Specifies a script to be invoked when the element is selected.
accesskeyfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Sets the access key for this element.
tabindexfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Specifies the position of this element within the tab order of the document.
disabledfalsefalsejavax.el.ValueExpression
(must evaluate to boolean)
When true, this element cannot receive focus.
readonlyfalsefalsejavax.el.ValueExpression
(must evaluate to boolean)
When true, indicates that this component cannot be modified by the user. The element may receive focus unless it has also been disabled.
labelfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
A diplay name for this component.
enabledClassfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
CSS class to be used for the enabled items.
disabledClassfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
CSS class to be used for the disabled items.
borderfalsefalsejavax.el.ValueExpression
(must evaluate to int)
Specifies the width of the border of this element, in pixels. Deprecated in HTML 4.01.
layoutfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.Object)
Orientation of the options list to be created. Valid values are "pageDirection" (list is laid out vertically), or "lineDirection" (list is laid out horizontally). If not specified, the default value is "lineDirection".

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.