|
|||||||
FRAMES NO FRAMES |
The <rich:autocomplete> component is an auto-completing input-box with built-in Ajax capabilities. It supports client-side suggestions, browser-like selection, and customization of the look and feel.
@author Nick BelaevskiTag Information | |
Component type | org.richfaces.Autocomplete |
Tag Name | rich:autocomplete |
Renderer Type | org.richfaces.AutocompleteRenderer |
Handler Class | org.richfaces.view.facelets.AutocompleteHandler |
Attributes | ||||
Name | Required | Type | Description | |
autocompleteList | false | java.lang.Object |
A collection of suggestions that will be resented to the user | |
autocompleteMethod | false | javax.el.MethodExpression |
A method which returns a list of suggestions according to a supplied prefix | |
autofill | false | boolean |
Causes the combo-box to fill the text field box with a matching suggestion as the user types | |
binding | false | javax.faces.component.UIComponent |
The value binding expression used to wire up this component to a component property of a JavaBean class | |
clientFilterFunction | false | java.lang.String |
A javascript function used to filter the result list returned from the ajax call to the server. This function should have two parameters; subString(current input value considering tokens) and value (currently iterated item value) and return boolean flag which means if the value satisfies the substring passed. The function will be called for every available suggestion in order to construct a new list of suggestions. Default: A javascript method called startsWith |
|
converter | false | javax.faces.convert.Converter |
Converter instance registered with this component. | |
converterMessage | false | java.lang.String |
A ValueExpression enabled attribute that, if present, will be used as the text of the converter message, replacing any message that comes from the converter. | |
disabled | false | boolean |
Boolean value indicating whether this component is disabled Default: false |
|
fetchValue | false | java.lang.Object |
A value to set in the target input element on a choice suggestion that isn't shown in the suggestion table. It can be used for descriptive output comments or suggestions. If not set, all text in the suggestion row is set as a value | |
id | false | java.lang.String |
The component identifier for this component. This value must be unique within the closest parent component that is a naming container. | |
immediate | false | boolean |
Flag indicating that this component's value must be converted and validated immediately (that is, during Apply Request Values phase), rather than waiting until Process Validations phase. | |
inputClass | false | java.lang.String |
Assigns one or more space-separated CSS class names to the input element | |
layout | false | java.lang.String |
Type of the layout encoded using nested components should be defined using layout attribute. Possible values are:
Default: div |
|
minChars | false | int |
Minimal number of chars in input to activate suggestion popup | |
mode | false | org.richfaces.component.AutocompleteMode |
Determine how the suggestion list is requested:
Default: cachedAjax |
|
onbeforedomupdate | false | java.lang.String |
The client-side script method to be called after the ajax response comes back, but before the DOM is updated | |
onbegin | false | java.lang.String |
The client-side script method to be called before an ajax request. | |
onblur | false | java.lang.String |
Javascript code executed when this element loses focus. | |
onchange | false | java.lang.String |
Javascript code executed when this element loses focus and its value has been modified since gaining focus. | |
onclick | false | java.lang.String |
Javascript code executed when a pointer button is clicked over this element. | |
oncomplete | false | java.lang.String |
The client-side script method to be called after the DOM is updated | |
ondblclick | false | java.lang.String |
Javascript code executed when a pointer button is double clicked over this element. | |
onerror | false | java.lang.String |
The client-side script method to be called when an error has occurred during Ajax communications | |
onfocus | false | java.lang.String |
Javascript code executed when this element receives focus. | |
onkeydown | false | java.lang.String |
Javascript code executed when a key is pressed down over this element. | |
onkeypress | false | java.lang.String |
Javascript code executed when a key is pressed and released over this element. | |
onkeyup | false | java.lang.String |
Javascript code executed when a key is released over this element. | |
onlistclick | false | java.lang.String |
Javascript code executed when a pointer button is clicked over the popup list element. | |
onlistdblclick | false | java.lang.String |
Javascript code executed when a pointer button is double clicked over this element. | |
onlistkeydown | false | java.lang.String |
Javascript code executed when a key is pressed down over this element. | |
onlistkeypress | false | java.lang.String |
Javascript code executed when a key is pressed and released over this element. | |
onlistkeyup | false | java.lang.String |
Javascript code executed when a key is released over this element. | |
onlistmousedown | false | java.lang.String |
Javascript code executed when a pointer button is pressed down over this element. | |
onlistmousemove | false | java.lang.String |
Javascript code executed when a pointer button is moved within this element. | |
onlistmouseout | false | java.lang.String |
Javascript code executed when a pointer button is moved away from this element. | |
onlistmouseover | false | java.lang.String |
Javascript code executed when a pointer button is moved onto this element. | |
onlistmouseup | false | java.lang.String |
Javascript code executed when a pointer button is released over this element. | |
onmousedown | false | java.lang.String |
Javascript code executed when a pointer button is pressed down over this element. | |
onmousemove | false | java.lang.String |
Javascript code executed when a pointer button is moved within this element. | |
onmouseout | false | java.lang.String |
Javascript code executed when a pointer button is moved away from this element. | |
onmouseover | false | java.lang.String |
Javascript code executed when a pointer button is moved onto this element. | |
onmouseup | false | java.lang.String |
Javascript code executed when a pointer button is released over this element. | |
onselectitem | false | java.lang.String |
Javascript code executed when an item is selected | |
popupClass | false | java.lang.String |
Assigns one or more space-separated CSS class names to the content of the popup suggestion element | |
rendered | false | boolean |
Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit. The default value for this property is true. | |
required | false | boolean |
Flag indicating that the user is required to provide a submitted value for this input component. | |
requiredMessage | false | java.lang.String |
A ValueExpression enabled attribute that, if present, will be used as the text of the validation message for the "required" facility, if the "required" facility is used. | |
selectFirst | false | boolean |
Boolean value indicating whether the first suggestion item is selected as the user types Default: true |
|
selectedItemClass | false | java.lang.String |
Assigns one or more space-separated CSS class names to the selected suggestion entry | |
showButton | false | boolean |
Boolean value indicating whether to display a button to expand the popup suggestion element Default: false |
|
style | false | java.lang.String |
CSS style(s) to be applied when this component is rendered. | |
styleClass | false | java.lang.String |
Space-separated list of CSS style class(es) to be applied when this element is rendered. This value must be passed through as the "class" attribute on generated markup. | |
tabindex | false | java.lang.String |
Position of this element in the tabbing order for the current document. This value must be an integer between 0 and 32767. | |
tokens | false | java.lang.String |
Allow a user to enter multiple values separated by specific characters. As the user types, a suggestion will present as normal. When they enter the specified token character, this begins a new suggestion process, and the component will then only use text entered after the token character for suggestions. Make sure that no character defined in tokens is part of any suggestion value. E.g. do not use space as a token if you expect to allow spaces in suggestion values. When tokens defined, they can be naturally separated by space character - input separated by tokens ', ' or ' ,' will be considered as it would be ',' token without any space. |
|
validator | false | javax.faces.el.MethodBinding |
MethodExpression representing a validator method that will be called during Process Validations to perform correctness checks on the value of this component. The expression must evaluate to a public method that takes FacesContext, UIComponent, and Object parameters, with a return type of void. | |
validatorMessage | false | java.lang.String |
A ValueExpression enabled attribute that, if present, will be used as the text of the validator message, replacing any message that comes from the validator. | |
value | false | java.lang.Object |
The current value of this component. | |
valueChangeListener | false | javax.faces.el.MethodBinding |
MethodExpression representing a value change listener method that will be notified when a new value has been set for this
input component. The expression must evaluate to a public method that takes a |
|
var | false | java.lang.String |
A request-scope attribute via which the data object for the current row will be used when iterating |
|
|||||||
FRAMES NO FRAMES |