Tag Name: | <af:selectItem> |
Java Class: | oracle.adf.view.rich.component.rich.input.RichSelectItem |
Component Type: | oracle.adf.RichSelectItem |
Required Ancestor Tag(s): | af:dynamicComponent, af:selectManyCheckbox, af:selectManyChoice, af:selectManyListbox, af:selectManyShuttle, af:selectOneChoice, af:selectOneListbox, af:selectOneRadio, af:selectOrderShuttle |
<af:selectOneRadio value="#{bean.aValue}" required="true"> <af:selectItem label="Option1" value="1"/> <af:selectItem label="Option1" value="2"/> <af:selectItem label="Option1" value="3"/> </af:selectOneRadio>
For all input components (and compound components that have an input component part to which a label can be assigned), the component requires a label. This can be accomplished in one of the following ways (all ways may not be available for all components):
Unless otherwise noted, any one of these approaches is sufficient, though label or labelAndAccessKey is the most convenient and should be used where possible.
Type | Phases | Description |
---|---|---|
org.apache.myfaces.trinidad.event.AttributeChangeEvent | Invoke Application, Apply Request Values |
Event delivered to describe an attribute change. Attribute change events are not delivered for any programmatic change to a property. They are only delivered when a renderer changes a property without the application's specific request. An example of an attribute change event might include the width of a column that supported client-side resizing. |
Name | Type | Supports EL? | Description |
---|---|---|---|
attributeChangeListener | javax.el.MethodExpression | Only EL | a method reference to an attribute change listener. Attribute change events are not delivered for any programmatic change to a property. They are only delivered when a renderer changes a property without the application's specific request. An example of an attribute change events might include the width of a column that supported client-side resizing. |
binding | oracle.adf.view.rich.component.rich.input.RichSelectItem | Only EL | an EL reference that will store the component instance on a bean. This can be used to give programmatic access to a component from a backing bean, or to move creation of the component to a backing bean. |
disabled | boolean | Yes | Default Value: false whether the item is disabled. By default, no items are disabled. |
id | String | No | the identifier for the component. Every component may be named by a component identifier that must conform to the following rules:
|
label | String | Yes | the user-visible text of the item |
longDesc | String | Yes | longDesc is deprecated, and it is ignored. this attribute is deprecated. It is ignored and will be removed in a future release. |
rendered | boolean | Yes | Default Value: true whether the component is rendered. When set to false, no output will be delivered for this component (the component will not in any way be rendered, and cannot be made visible on the client). If you want to change a component's rendered attribute from false to true using PPR, set the partialTrigger attribute of its parent component so the parent refreshes and in turn will render this component. |
shortDesc | String | Yes | the short description of the option. This text is commonly used by user agents to display advisory information about the option. |
value | Object | Yes | the value used to identify this item when the parent control is submitted to the server. If no value is specified for a particular item, the item's contents will be used as its value. |