Apache Struts 2 Documentation > Home > Guides > Tag Developers Guide > Struts Tags > Tag Reference > UI Tag Reference > autocompleter
Added by Musachy Barroso, last edited by Musachy Barroso on Feb 22, 2007

Description

Parameters

Name

Required

Default

Evaluated

Type

Description

accesskey false true String Set the html accesskey attribute on rendered html element
autoComplete false false true Boolean Whether autocompleter should make suggestion on the textbox
cssClass false true String The css class to use for element
cssStyle false true String The css style definitions for element ro use
dataFieldName false Value specified in 'name' true String Name of the field in the returned JSON object that contains the data array
delay false 100 true Integer Delay before making the search
disabled false false true Boolean Enable or disable autocompleter
dropdownHeight false 120 true Integer Dropdown's height in pixels
dropdownWidth false same as textbox true Integer Dropdown's width
emptyOption false true String Decide if an empty option is to be inserted. Default false.
forceValidOption false false true Boolean Force selection to be one of the options
formFilter false true String Function name used to filter the fields of the form
formId false true String Form id whose fields will be serialized and passed as parameters
headerKey false true String Set the header key for the header option.
headerValue false true String Set the header value for the header option.
href false true String The URL used to load the options
iconPath false true String Path to icon used for the dropdown
id false true String id for referencing element. For UI and form tags it will be used as HTML id attribute
indicator false true String Id of element that will be shown while request is made
key false true String Set the key (name, value, label) for this particular component
keyName false true String Name of the field to which the selected key will be assigned
label false true String Label expression used for rendering a element specific label
labelposition false true String Define label position of form element (top/left)
list false true String Iteratable source to populate from.
listKey false true String Set the key used to retrive the option key.
listValue false true String Set the value used to retrive the option value.
listenTopics false true String Topic that will trigger a reload
loadMinimumCount false 3 true Integer Minimum number of characters that will force the content to be loaded
loadOnTextChange false true true Boolean Options will be reloaded everytime a character is typed on the textbox
maxLength false true Integer Deprecated. Use maxlength instead.
maxlength false true Integer HTML maxlength attribute
name false true String The name to set for element
notifyTopics false true String Topics that will be published when content is reloaded
onblur false true String Set the html onblur attribute on rendered html element
onchange false true String Set the html onchange attribute on rendered html element
onclick false true String Set the html onclick attribute on rendered html element
ondblclick false true String Set the html ondblclick attribute on rendered html element
onfocus false true String Set the html onfocus attribute on rendered html element
onkeydown false true String Set the html onkeydown attribute on rendered html element
onkeypress false true String Set the html onkeypress attribute on rendered html element
onkeyup false true String Set the html onkeyup attribute on rendered html element
onmousedown false true String Set the html onmousedown attribute on rendered html element
onmousemove false true String Set the html onmousemove attribute on rendered html element
onmouseout false true String Set the html onmouseout attribute on rendered html element
onmouseover false true String Set the html onmouseover attribute on rendered html element
onmouseup false true String Set the html onmouseup attribute on rendered html element
onselect false true String Set the html onselect attribute on rendered html element
readonly false false true Boolean Whether the input is readonly
required false false true Boolean If set to true, the rendered element will indicate that input is required
requiredposition false true String Define required position of required form element (left|right)
searchType false stringstart true String how the search must be performed, options are: 'startstring', 'startword' and 'substring'
showDownArrow false true true Boolean Show or hide the down arrow button
size false true Integer HTML size attribute
tabindex false true String Set the html tabindex attribute on rendered html element
template false true String The template (other than default) to use for rendering the element
templateCssPath false true String Template css path
templateDir false true String The template directory.
theme false true String The theme (other than default) to use for rendering the element
title false true String Set the html title attribute on rendered html element
tooltip false true String Set the tooltip of this particular component
tooltipConfig false true String Set the tooltip configuration
value false true String Preset the value of input element.