Overview | Library | Tag | Help
| FRAMES NO FRAMES

## ICEfaces-EE ACE Components
Tag autoCompleteEntry

AutoCompleteEntry is a text input component that presents possible valid options as the user types. The options can be a list of SelectItem's specified in a child tag. It is also possible to specify a list of arbitrary data objects (i.e. POJOs) through the listValue attribute. In this case, a facet named "row" should be nested inside this component. This allows for more flexible rendering of each row, making it possible to render other components or HTML for each row and to display different properties of the data object.

For more information, see the AutoCompleteEntry Wiki Documentation.

Client Events
Name | Description | Supported classes for argument
submit | Fired any time the value of the text input field is submitted to the server, either by typing a character, clicking on an option from the list, selecting an option with the keyboard, or pressing enter on the text field. If there are also textChange and/or valueChange events registered for this component, this event will not fire in those cases, since the other events are more specific and have precedence. | javax.faces.event.AjaxBehaviorEvent
blur | Fired any time the text input field loses focus. | javax.faces.event.AjaxBehaviorEvent
textChange | Fired any time the user adds or removes characters from the text field by typing or by pasting text. | javax.faces.event.AjaxBehaviorEvent
valueChange | Fired when the user gives a more definite input for this component either by clicking on an option from the list, or selecting an option with the keyboard, or pressing enter on the text field. | javax.faces.event.AjaxBehaviorEvent

Client events can be used with Client Behaviors and the ace:ajax tag.

Tag Information
Tag Class | org.icefaces.ace.component.autocompleteentry.AutoCompleteEntryTag
TagExtraInfo Class | None
Body Content | JSP
Display Name | None

Attributes
Name | Required | Request-time | Type | Description
accesskey | no | true | `java.lang.String` | Access key that, when pressed, transfers focus to this element.
alt | no | true | `java.lang.String` | Alternate textual description of the element rendered by this component.
autocomplete | no | true | `java.lang.String` | If the value of this attribute is "off", render "off" as the value of the attribute. This indicates that the browser should disable its autocomplete feature for this component. This is useful for components that perform autocompletion and do not want the browser interfering. If this attribute is not set or the value is "on", render nothing.
binding | no | true | `javax.el.ValueExpression` | Using an EL expression, bind the component reference to a bean property, so that the component may be accessed in the bean.
caseSensitive | no | true | `boolean` | Boolean value that indicates whether the filtering should be case sensitive or not. Default = 'false'.
clientSide | no | true | `boolean` | Boolean value that indicates whether the autocomplete functionality should be done on the client or on the server. Client-side mode can be faster, as no round trips to the server need to be made. However, if the list of possible results is too large, the browser might become slower, since the entire list has to be stored in the client as HTML nodes. It is recommended not to use lists of more than 1000 items when using the client-side mode. Default = 'false'.
converter | no | true | `javax.faces.convert.Converter` | Converter is an interface describing a Java class that can perform Object-to-String and String-to-Object conversions between model data objects and a String representation of those objects that is suitable for rendering.
converterMessage | no | true | `java.lang.String` | If present, will be used as the text of the converter message, replacing any message that comes from the converter.
delay | no | true | `int` | Delay in milliseconds for showing the list of possible matches after typing a character. Default = '250'.
dir | no | true | `java.lang.String` | Direction indication for text that does not inherit directionality. Valid values are "LTR" (left-to-right) and "RTL" (right-to-left).
direction | no | true | `java.lang.String` | Direction in which to show the list of possible matches. Possible values are "up", "down", and "auto".
disabled | no | true | `boolean` | Flag indicating that this element must never receive focus or be included in a subsequent submit. A value of false causes no attribute to be rendered, while a value of true causes the attribute to be rendered as disabled="disabled". Default = 'false'.
filterBy | no | true | `java.lang.Object` | ValueExpression that specifies the property of the data object to use for filtering values. This only applies when listvar is used and the rendering is done by means of a facet.
filterMatchMode | no | true | `java.lang.String` | Defines the method of filter comparison used, default is "startsWith". Types available include: "contains", "exact", "startsWith", "endsWith" and "none". Typically, "none" will be used in cases where more complex, custom filtering is needed or when option values need to be loaded lazily (e.g. from a data base). Default = 'startsWith'.
height | no | true | `int` | Maximum height in pixels of the list of possible matches (if 0, then the size is automatically adjusted to show all possible matches).
hideEffect | no | true | `java.lang.String` | Effect to use when hiding the list. Possible values are 'blind', 'bounce', 'clip', 'drop', 'explode', 'fade', 'fold', 'puff', 'pulsate', 'scale', and 'slide'. Default = 'fade'.
hideEffectLength | no | true | `int` | Length of time in milliseconds the hide effect will last for. Default = '150'.
id | no | true | `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 | no | true | `boolean` | A flag indicating that conversion and validation of this component's value should occur during Apply Request Values phase instead of Process Validations phase. Default = 'false'.
indicatorPosition | no | true | `java.lang.String` | Position of input-required or input-optional indicator relative to input field or label. Supported values are "left/right/top/bottom/labelLeft/labelRight/none". Default is "labelRight" if labelPosition is "inField", "right" otherwise.
label | no | true | `java.lang.String` | A localized user presentable name for this component.
labelPosition | no | true | `java.lang.String` | Position of label relative to input field. Supported values are "left/right/top/bottom/inField/none". Default is "none".
lang | no | true | `java.lang.String` | Code describing the language used in the generated markup for this component.
listValue | no | true | `java.util.List` | When rendering via a facet, this attribute specifies the list of data objects that contains all possible options.
listVar | no | true | `java.lang.String` | Variable name to use for referencing each data object in the list when rendering via a facet.
maxlength | no | true | `int` | The maximum number of characters that may be entered in this field.
minChars | no | true | `int` | Minimum number of characters that must be in the text field before submitting and before producing the list of possible matches. Default = '0'.
optionalIndicator | no | true | `java.lang.String` | Indicator indicating that the user is NOT required to provide a submitted value for this input component.
readonly | no | true | `boolean` | Flag indicating that this component will prohibit changes by the user. The element may receive focus unless it has also been disabled. A value of false causes no attribute to be rendered, while a value of true causes the attribute to be rendered as readonly="readonly". Default = 'false'.
rendered | no | true | `boolean` | Return true if this component (and its children) should be rendered during the Render Response phase of the request processing lifecycle. Default = 'true'.
required | no | true | `boolean` | A flag indicating whether the user required to provide a non-empty submitted value for this component. Default = 'false'.
requiredIndicator | no | true | `java.lang.String` | Indicator indicating that the user is required to provide a submitted value for this input component.
requiredMessage | no | true | `java.lang.String` | If present, will be used as the text of the validation message for the "required" facility, if the "required" facility is used.
reset | no | true | `boolean` | Flag to reset the component values completely. This component internally stores a number of temporary values to perform its functions. Since these values are not accessible to the app developer, they might linger after resetting the main value. Set this flag to true to completely reset all these temporary internal values. These values will be reset in the RENDER_RESPONSE phase. After that, this flag will automatically be set to false again. Typically this flag will be set in an action listener. When setting this flag to true, it is also advised to set the property bound to this component's value to null. Default = 'false'.
rows | no | true | `int` | The maximum number of possible options to show to the user. Default = '10'.
showEffect | no | true | `java.lang.String` | Effect to use when showing the list. Possible values are 'blind', 'bounce', 'clip', 'drop', 'explode', 'fade', 'fold', 'puff', 'pulsate', 'scale', 'slide', and 'shake'. Default = 'fade'.
showEffectLength | no | true | `int` | Length of time in milliseconds the show effect will last for. Default = '150'.
size | no | true | `int` | The number of characters used to determine the width of this field.
style | no | true | `java.lang.String` | CSS style(s) to be applied when this component is rendered.
styleClass | no | true | `java.lang.String` | Style class name of the container element.
tabindex | no | true | `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.
textChangeListener | no | true | `javax.el.MethodExpression` | MethodExpression representing a text change listener method that will be notified when the text of the input field changes after the user types new characters or removes them. This is different from a value change event in that in this case the user has not yet given a definite input and is just typing strings to to obtain lists of possible values. The value change event differs in that it only fires once the user has selected a value from the list or has pressed 'enter' on the input field. The expression must evaluate to a public method that takes a org.icefaces.ace.event.TextChageEvent parameter, with a return type of void.
title | no | true | `java.lang.String` | Advisory title information about markup elements generated for this component.
validator | no | true | `javax.el.MethodExpression` | 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 | no | true | `java.lang.String` | If present, will be used as the text of the validator message, replacing any message that comes from the validator.
value | no | true | `java.lang.Object` | The current value of the simple component. The value to be rendered.
valueChangeListener | no | true | `javax.el.MethodExpression` | 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 `ValueChangeEvent` parameter, with a return type of void, or to a public method that takes no arguments with a return type of void. In the latter case, the method has no way of easily knowing what the new value is, but this can be useful in cases where a notification is needed that "this value changed".
width | no | true | `int` | The width of the text input field, in pixels. Default = '150'.

Variables
| No Variables Defined.

Overview | Library | Tag | Help
| FRAMES NO FRAMES

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.