Hi,

I'm using autocomplete tag but it don't work very well. These is my
configurations:

struts.xml

   <package name="example"  extends="json-default">
        <action name="JSONExample" class="action.JSONAction">
           <result name="success" type="json">json.jsp</result>
        </action>
 </package>

action:

public class JSONAction {

    private Map map = new HashMap();

    public String execute() {
       map.put("name", "mário");
       map.put("name", "pedro");
       map.put("name", "carlos");
       return Action.SUCCESS;
    }

    public Map getMap() {
        return map;
    }
    public void setMap(Map map) {
        this.map = map;
    }

}

JSP:

<%@ taglib prefix="s" uri="struts-tags" %>

<s:head theme="ajax" />

<s:url id="json" value="JSONExample.do" />

<s:autocompleter theme="simple" href="%{json}" autoComplete="true" />

When i run JSP page in firefox, this message is displayed:

Erro: TypeError: this.data[x][0].toLowerCase is not a function
Arquivo-fonte: http://localhost:8080/oficina/struts/dojo/dojo.js
Linha: 94

Somebody can help me to solve this problem ?

Thanks!

--
Att
Guilherme Mello do Nascimento
PortalJava.com - A maior comunidade Java do Brasil

Reply via email to