autocompleter
Prints an input field and a div for use with script.aculo.us Autocompleter. The tag can be used specifying an action and event (and possibly nested <l:param> tags), or a list of options:
Deprecated. with no replacement. Use a simple text field and Scripty2 autocompleter, which has a much better implementation.
| Tag Information | |
|---|---|
| Tag Class | org.loom.addons.autocompleter.AutocompleterTag |
| Body Content | scriptless |
| Dynamic Attributes | true |
| Example | <a:autocompleter action="MyAction" event="myevent" name="mortgage.name"> <l:param name="param1" value="value1"> </a:autocompleter> |
Attributes
| Name | Description | Flags |
|---|---|---|
| name | HTML attribute with different meanings: This is the property path inside the action that will be used to get and set the field value. |
requiredrtexprvalue
|
| accesskey | HTML attribute |
rtexprvalue
|
| action | Set the target action of this autocompleter (alternative to url) |
rtexprvalue
|
| alt | HTML attribute |
rtexprvalue
|
| autocomplete | The non-standard attribute to enable/disable browser autocomplete for any field (Firefox and IE). If not set, it will use the value specified in the container form tag. |
rtexprvalue
|
| bound | true if this field is bound to a java property, defaults to true |
rtexprvalue
|
| class | HTML attribute |
rtexprvalue
|
| decorator | The name of the decorator to use. The default decorators for any form field will display the surrounding label. |
rtexprvalue
|
| dir | HTML attribute |
rtexprvalue
|
| disabled | HTML attribute |
rtexprvalue
|
| escapeHTML | true to sanitize HTML characters when rendering as text, default true |
rtexprvalue
|
| event | Set the target event of this autocompleter (alternative to url) |
rtexprvalue
|
| helpLine | If not null, this value will be used as help line |
rtexprvalue
|
| id | HTML attribute |
rtexprvalue
|
| if | Set to false to skip tag execution. |
rtexprvalue
|
| label | If not null, the provided value will be used as field label. Defaults to the name attribute |
rtexprvalue
|
| labelClass | CSS styles to be applied to the surrounding label but not to the input component. This is useful when using grid systems such as 960gs or YUI-Grid |
rtexprvalue
|
| labelPos | Position of the label for this field. Valid values are "left" (default for almost all field types) and "right" (default for checkboxes and radio buttons) |
rtexprvalue
|
| lang | HTML attribute |
rtexprvalue
|
| maxlength | This is a known attribute for InputTextField and subclasses, as specified here. In the case of pre-HTML5 InputTextArea, it should be enforced using javascript. |
rtexprvalue
|
| options | if not null, the array of autocompletion options that will be used with Autocompleter.Local. It can be either a list of Strings (which would be used as is) or, if an {@link Autocompleted} annotation is used, instances with a property that corresponds to its propertyName attribute. |
rtexprvalue
|
| pattern | Regex pattern HTML 5. Note that we will be using the regular expression as introduced by the developer, not modifying it as the spec requires us to. |
rtexprvalue
|
| readonly | HTML attribute |
rtexprvalue
|
| renderAsText | true to render the field just as text (no form field), default false |
rtexprvalue
|
| renderErrorDisplayComponent | true to render the error message as a separate HTML component, default null |
rtexprvalue
|
| renderLabel | true to render label, false otherwise. By default it will use the value specified in the container form |
rtexprvalue
|
| size | HTML attribute |
rtexprvalue
|
| style | HTML attribute |
rtexprvalue
|
| tabindex | HTML attribute |
rtexprvalue
|
| title | HTML attribute |
rtexprvalue
|
| translateLabel | true to translate label before rendering, false otherwise. defaults to true |
rtexprvalue
|
| translateTitle | set to true to translate title, default true |
rtexprvalue
|
| url | Set the target URL of this autocompleter (alternative to action) |
rtexprvalue
|
| value | when specified, use this value instead of the action property value |
rtexprvalue
|