diff --git a/core/src/main/java/org/apache/struts2/components/Autocompleter.java b/core/src/main/java/org/apache/struts2/components/Autocompleter.java index 85c5ee38e..70fed88d7 100644 --- a/core/src/main/java/org/apache/struts2/components/Autocompleter.java +++ b/core/src/main/java/org/apache/struts2/components/Autocompleter.java @@ -29,9 +29,11 @@ import org.apache.struts2.views.annotations.StrutsTagAttribute; import com.opensymphony.xwork2.util.ValueStack; /** + * *
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 *Autocompleter that gets its list from an action:
+ *<s:autocompleter name="test" href="%{jsonList}" autoComplete="false"/> + *Autocompleter that uses a list:
+ *<s:autocompleter name="test" list="{'apple','banana','grape','pear'}" autoComplete="false"/> + *