org.richfaces.component
public abstract class AbstractSelect extends AbstractSelectComponent implements org.richfaces.component.util.SelectItemsInterface, org.richfaces.component.MetaComponentResolver, org.richfaces.component.MetaComponentEncoder, org.richfaces.component.attribute.CoreProps, org.richfaces.component.attribute.DisabledProps, org.richfaces.component.attribute.EventsKeyProps, org.richfaces.component.attribute.EventsMouseProps, org.richfaces.component.attribute.SelectProps, AutocompleteProps, org.richfaces.component.attribute.SelectItemsProps
The <rich:select> component provides a drop-down list box for selecting a single value from multiple options. The <rich:select> component can be configured as a combo-box, where it will accept typed input. The component also supports keyboard navigation. The <rich:select> component functions similarly to the JSF UISelectOne component.
The <rich:select> can optionally be used in an auto-completing mode, where the values in the drop-down list are provided dynamically using either the autocompleteMethod or autocompleteList attributes. If these attributes are omitted, the component operates in the traditional non-auto-completing mode. Refer to the individual attribute documentation to see which attributes are applicable only with an auto-completing select list.
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
static String |
ITEMS_META_COMPONENT_ID |
CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID, VALIDATE_EMPTY_FIELDS_PARAM_NAME| Constructor and Description |
|---|
AbstractSelect() |
| Modifier and Type | Method and Description |
|---|---|
void |
encodeMetaComponent(javax.faces.context.FacesContext context,
String metaComponentId) |
abstract String |
getActiveClass() |
abstract String |
getChangedClass() |
abstract String |
getClientFilterFunction()
A javascript function used to filter the list of items in the select popup
|
abstract String |
getDisabledClass() |
abstract Object |
getItemLabel()
Label to be displayed to the user for the corresponding option.
|
abstract Object |
getItemValue()
Value to be returned to the server if the corresponding option is selected by the user.
|
Object |
getItemValues() |
abstract String |
getMaxListHeight()
The maximum height of the list
|
abstract String |
getMinListHeight()
The minimum height ot the list
|
abstract String |
getVar()
Expose the values from either the autocompleteList or autocompleteMethod attributes under a request scoped key so that the values may be referred to in an EL expression while rendering this component.
|
abstract boolean |
isEnableManualInput()
If "true" Allows the user to type into a text field to scroll through or filter the list.
|
abstract boolean |
isSelectFirst()
If "true" as the user types to narrow the list, automatically select the first element in the list.
|
abstract boolean |
isShowButton()
When "true" display a button to expand the popup list
|
void |
processEvent(javax.faces.event.ComponentSystemEvent event) |
String |
resolveClientId(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent contextComponent,
String metaComponentId) |
String |
substituteUnresolvedClientId(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent contextComponent,
String metaComponentId) |
protected void |
validateValue(javax.faces.context.FacesContext facesContext,
Object value)
Override the validateValue method in cases where the component implements SelectItemsInterface
|
boolean |
visitTree(javax.faces.component.visit.VisitContext context,
javax.faces.component.visit.VisitCallback callback) |
getOnchange, getOnlistclick, getOnlistdblclick, getOnlisthide, getOnlistkeydown, getOnlistkeypress, getOnlistkeyup, getOnlistmousedown, getOnlistmousemove, getOnlistmouseout, getOnlistmouseover, getOnlistmouseup, getOnlistshow, getOnselectitemaddValidator, addValueChangeListener, clearInitialState, compareValues, decode, getConvertedValue, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValue, getValueChangeListener, getValueChangeListeners, isEmpty, isImmediate, isLocalValueSet, isRequired, isValid, markInitialState, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, resetValue, restoreState, saveState, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener, updateModel, validategetConverter, getLocalValue, setConverteraddClientBehavior, addFacesListener, broadcast, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpressionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStyle, getStyleClass, getTitlegetOnkeydown, getOnkeypress, getOnkeyupgetOnclick, getOndblclick, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseupgetDefaultLabel, getItemClass, getListClass, getListHeight, getListWidth, getSelectItemClassgetAutocompleteList, getAutocompleteMethod, getAutocompleteMethodWithOneParameter, getMinChars, getMode, setAutocompleteMethod, setAutocompleteMethodWithOneParameterpublic static final String ITEMS_META_COMPONENT_ID
public static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
public Object getItemValues()
getItemValues in interface org.richfaces.component.util.SelectItemsInterfacepublic abstract boolean isEnableManualInput()
If "true" Allows the user to type into a text field to scroll through or filter the list. Implicitly true when using an auto-completing select list.
Default is "false"
public abstract boolean isSelectFirst()
If "true" as the user types to narrow the list, automatically select the first element in the list. Applicable only when enableManualInput is "true".
Default is "true"
public abstract boolean isShowButton()
When "true" display a button to expand the popup list
Default is "true"
public abstract String getMinListHeight()
public abstract String getMaxListHeight()
public abstract String getClientFilterFunction()
public abstract String getActiveClass()
getActiveClass in interface org.richfaces.component.attribute.SelectPropspublic abstract String getChangedClass()
getChangedClass in interface org.richfaces.component.attribute.SelectPropspublic abstract String getDisabledClass()
getDisabledClass in interface org.richfaces.component.attribute.SelectPropspublic abstract Object getItemValue()
getItemValue in interface org.richfaces.component.attribute.SelectItemsPropspublic abstract Object getItemLabel()
getItemLabel in interface org.richfaces.component.attribute.SelectItemsPropspublic abstract String getVar()
getVar in interface AutocompletePropsgetVar in interface org.richfaces.component.attribute.SelectItemsPropsprotected void validateValue(javax.faces.context.FacesContext facesContext,
Object value)
validateValue in class javax.faces.component.UISelectOnefacesContext - value - public void processEvent(javax.faces.event.ComponentSystemEvent event)
throws javax.faces.event.AbortProcessingException
processEvent in interface javax.faces.event.ComponentSystemEventListenerprocessEvent in class javax.faces.component.UIComponentjavax.faces.event.AbortProcessingExceptionpublic String resolveClientId(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent contextComponent, String metaComponentId)
resolveClientId in interface org.richfaces.component.MetaComponentResolverpublic boolean visitTree(javax.faces.component.visit.VisitContext context,
javax.faces.component.visit.VisitCallback callback)
visitTree in class javax.faces.component.UIComponentpublic void encodeMetaComponent(javax.faces.context.FacesContext context,
String metaComponentId)
throws IOException
encodeMetaComponent in interface org.richfaces.component.MetaComponentEncoderIOExceptionCopyright © 2015 JBoss by Red Hat. All Rights Reserved.