mirror of
https://github.com/apache/struts.git
synced 2026-08-07 15:46:57 +00:00
Update autocompleter tag documentation
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@543918 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -42,12 +42,19 @@ import com.opensymphony.xwork2.util.ValueStack;
|
||||
* ["Text2", "Value2"]
|
||||
* ]
|
||||
* </pre>
|
||||
* <p>2. If a value is specified in the "dataFieldName" attribute, and the response has a field with that
|
||||
* name, assume that's the datasource, which can be an array of 2-dimension array elements, or a map,
|
||||
* like (assuming dataFieldName="states"):</p>
|
||||
* <p>2. If the response is a map, use it (recommended as it is the easiest one to generate):
|
||||
* <pre>
|
||||
* {
|
||||
* "states" : [
|
||||
* "Alabama" : "AL",
|
||||
* "Alaska" : "AL"
|
||||
* }
|
||||
* </pre>
|
||||
* <p>3. If a value is specified in the "dataFieldName" attribute, and the response has a field with that
|
||||
* name, assume that's the datasource, which can be an array of 2-dimension array elements, or a map,
|
||||
* like (assuming dataFieldName="state"):</p>
|
||||
* <pre>
|
||||
* {
|
||||
* "state" : [
|
||||
* ["Alabama","AL"],
|
||||
* ["Alaska","AK"]
|
||||
* ]
|
||||
@@ -56,7 +63,7 @@ import com.opensymphony.xwork2.util.ValueStack;
|
||||
* or
|
||||
*
|
||||
* {
|
||||
* "states" : {
|
||||
* "state" : {
|
||||
* "Alabama" : "AL",
|
||||
* "Alaska" : "AK"
|
||||
* }
|
||||
|
||||
Reference in New Issue
Block a user