| java.lang.Object org.apache.struts2.components.Component org.apache.struts2.components.UIBean org.apache.struts2.components.TextField org.apache.struts2.components.ComboBox org.apache.struts2.components.Autocompleter
Autocompleter | public class Autocompleter extends ComboBox (Code) | |
The autocomplete tag is a combobox that can autocomplete text entered on the input box.
When used on the "simple" theme, the autocompleter can be used like the ComboBox.
When used on the "ajax" theme, the list can be retieved from an action.
THE FOLLOWING IS ONLY VALID WHEN AJAX IS CONFIGURED
- href
- errorText
- listenTopics
- notifyTopics
- listenTopics
- formId
- formFilter
- indicator
- loadOnTextChange
- loadMinimumCount
- showDownArrow
- searchType
'dropdownWidth' width in pixels of the drodpdown, same as autocompleter's width by default
'dropdownHeight' height in pixels of the drodown, 120 px by default
'forceValidOption' if invalid option is selected, clear autocompleter's text when focus is lost
'autoComplete', if true, make suggestions on the textbox
'formId' is the id of the html form whose fields will be seralized and passed as parameters
in the request.
'formFilter' is the name of a function which will be used to filter the fields that will be
seralized. This function takes as a parameter the element and returns true if the element
should be included.
'listenTopics' comma separated list of topics names, that will trigger a request
'indicator' element to be shown while the request executing
'showErrorTransportText': whether errors should be displayed (on 'targets')
'loadOnTextChange' options will be reloaded everytime a character is typed on the textbox
'loadMinimumCount' minimum number of characters that will force the content to be loaded
'showDownError' show or hide the down arrow button
'searchType' how the search must be performed, options are: "startstring", "startword" and "substring"
'keyName' name of the field to which the selected key will be assigned
'iconPath' path of icon used for the dropdown
'templateCssPath' path to css file used to customize Dojo's widget
'dataFieldName' name of the field to be used as the list in the returned JSON string
'notifyTopics' comma separated list of topics names, that will be published. Three parameters are passed:
|
evaluateExtraParams | public void evaluateExtraParams()(Code) | | |
getDefaultTemplate | protected String getDefaultTemplate()(Code) | | |
setAutoComplete | public void setAutoComplete(String autoComplete)(Code) | | |
setDataFieldName | public void setDataFieldName(String dataFieldName)(Code) | | |
setDropdownHeight | public void setDropdownHeight(String height)(Code) | | |
setDropdownWidth | public void setDropdownWidth(String width)(Code) | | |
setForceValidOption | public void setForceValidOption(String forceValidOption)(Code) | | |
setFormFilter | public void setFormFilter(String formFilter)(Code) | | |
setIndicator | public void setIndicator(String indicator)(Code) | | |
setListenTopics | public void setListenTopics(String listenTopics)(Code) | | |
setLoadMinimumCount | public void setLoadMinimumCount(String loadMinimumCount)(Code) | | |
setLoadOnTextChange | public void setLoadOnTextChange(String loadOnType)(Code) | | |
setNotifyTopics | public void setNotifyTopics(String onValueChangedPublishTopic)(Code) | | |
setResultsLimit | public void setResultsLimit(String resultsLimit)(Code) | | |
setSearchType | public void setSearchType(String searchType)(Code) | | |
setShowDownArrow | public void setShowDownArrow(String showDownArrow)(Code) | | |
setTemplateCssPath | public void setTemplateCssPath(String templateCssPath)(Code) | | |
Methods inherited from org.apache.struts2.components.Component | public void addAllParameters(Map params)(Code)(Java Doc) public void addParameter(String key, Object value)(Code)(Java Doc) public boolean altSyntax()(Code)(Java Doc) public void copyParams(Map params)(Code)(Java Doc) protected String determineActionURL(String action, String namespace, String method, HttpServletRequest req, HttpServletResponse res, Map parameters, String scheme, boolean includeContext, boolean encodeResult)(Code)(Java Doc) protected String determineActionURL(String action, String namespace, String method, HttpServletRequest req, HttpServletResponse res, Map parameters, String scheme, boolean includeContext, boolean encodeResult, boolean forceAddSchemeHostAndPort, boolean escapeAmp)(Code)(Java Doc) protected String determineNamespace(String namespace, ValueStack stack, HttpServletRequest req)(Code)(Java Doc) public boolean end(Writer writer, String body)(Code)(Java Doc) protected boolean end(Writer writer, String body, boolean popComponentStack)(Code)(Java Doc) protected StrutsException fieldError(String field, String errorMsg, Exception e)(Code)(Java Doc) protected Component findAncestor(Class clazz)(Code)(Java Doc) protected String findString(String expr)(Code)(Java Doc) protected String findString(String expr, String field, String errorMsg)(Code)(Java Doc) protected Object findValue(String expr)(Code)(Java Doc) protected Object findValue(String expr, String field, String errorMsg)(Code)(Java Doc) protected Object findValue(String expr, Class toType)(Code)(Java Doc) public Stack getComponentStack()(Code)(Java Doc) public String getId()(Code)(Java Doc) public Map getParameters()(Code)(Java Doc) public ValueStack getStack()(Code)(Java Doc) protected void popComponentStack()(Code)(Java Doc) public void setActionMapper(ActionMapper mapper)(Code)(Java Doc) public void setId(String id)(Code)(Java Doc) public boolean start(Writer writer)(Code)(Java Doc) protected String toString(Throwable t)(Code)(Java Doc) public boolean usesBody()(Code)(Java Doc)
|
|
|