UISelectOne is a
UIComponent that represents the user's choice of zero or one
items from among a discrete set of available options. The user can
modify the selected value. Optionally, the component can be
preconfigured with a currently selected item, by storing it as the
value property of the component.
This component is generally rendered as a select box or a group of radio buttons.
By default, the rendererType property is set to
"javax.faces.Menu". This value can be changed by
calling the setRendererType() method.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | COMPONENT_FAMILY
Hides javax. The standard component family for this component. |
| public static final String | COMPONENT_TYPE
Hides javax. The standard component type for this component. |
| public static final String | INVALID_MESSAGE_ID
The message identifier of the
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | getFamily()
Overrides javax. Return the identifier of the component family to which this component belongs. |
| public String | |
| private static UIComponent | |
| private static boolean | |
| private static boolean | |
| public void | processValidators(FacesContext
FacesContext for the request we are processingOverrides javax. If |
| public void | |
| protected void | validateValue(FacesContext
The context, Object FacesContext for the current requestThe converted value to test for membership. value)Overrides javax. In addition to the
standard validation behavior inherited from |
| COMPONENT_FAMILY | back to summary |
|---|---|
| public static final String COMPONENT_FAMILY Hides javax. The standard component family for this component. | |
| COMPONENT_TYPE | back to summary |
|---|---|
| public static final String COMPONENT_TYPE Hides javax. The standard component type for this component. | |
| INVALID_MESSAGE_ID | back to summary |
|---|---|
| public static final String INVALID_MESSAGE_ID The message identifier of the
| |
| UISelectOne | back to summary |
|---|---|
| public UISelectOne() Create a new | |
| getFamily | back to summary |
|---|---|
| public String getFamily() Overrides javax. Doc from javax. Return the identifier of the component
family to which this component belongs. This identifier, in conjunction
with the value of the | |
| getGroup | back to summary |
|---|---|
| public String getGroup() Returns the name of the radio button group.
Radio button components having the same group within a
| |
| getGroupContainer | back to summary |
|---|---|
| private static UIComponent getGroupContainer(FacesContext context, UISelectOne radio) | |
| isAlreadySubmittedOrValidated | back to summary |
|---|---|
| private static boolean isAlreadySubmittedOrValidated(EditableValueHolder input) | |
| isOtherMemberOfSameGroup | back to summary |
|---|---|
| private static boolean isOtherMemberOfSameGroup(FacesContext context, String group, String clientId, UISelectOne radio) | |
| processValidators | back to summary |
|---|---|
| public void processValidators(FacesContext context) Overrides javax. If
| |
| setGroup | back to summary |
|---|---|
| public void setGroup(String group) Sets the name of the radio button group.
| |
| validateValue | back to summary |
|---|---|
| protected void validateValue(FacesContext context, Object value) Overrides javax. In addition to the
standard validation behavior inherited from If
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final UISelectOne. | group
Specifies the name of the radio button group. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static UISelectOne. | |
| public static UISelectOne. |
| group | back to summary |
|---|---|
| public static final UISelectOne. Specifies the name of the radio button group.
| |
| PropertyKeys | back to summary |
|---|---|
| private PropertyKeys() | |
| valueOf | back to summary |
|---|---|
| public static UISelectOne. | |
| values | back to summary |
|---|---|
| public static UISelectOne. | |