Hi, hm..strange thing. I can not see anything done wrong from your side.
The error should not matter, this comes from the dojo migration to tomahawk but doesn`t have inclusions on the component. Can you have a look if the response comes correctly through? Take firebug or some other tool in order to let you show the GET-request/response. The response should have a format like this: [["a 1","A"],["a 2","A"],] Are there any js-errors shown in the console? cheers, Gerald On 11/4/06, Slawek <[EMAIL PROTECTED]> wrote:
> > you should be able to drink beer, instead of waisting time in > searching how this component works. Because the component should work > as expected with the latest version. > > Have a look at our examples page [1], also the jsp source of how to > use the component is available. > thanks for answer. but i saw this page and i tried to use it as my manual when start playing with input suggest... i have simplified it to this: //===================== JSP ==================== <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %> <%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s" %> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <f:view> <h:form> <s:inputSuggestAjax id="aj" suggestedItemsMethod="#{ajaxBean.getCodeSuggestions}" value="#{ajaxBean.code}" charset="utf-8"/> </h:form> </f:view> </body> </html> //================ backing bean =================== public class AjaxBean implements Serializable{ private String code = ""; public List<String> getCodeSuggestions(String prefix){ List<String> result = new ArrayList<String>(); for (int i=0; i<20; i++){ String x = prefix + "_" +i; result.add(x); } return result; } public String getCode() {return code;} public void setCode(String code) {this.code = code;} } //===================================================== btw: its not only my problem. 2 of my firends are stuggling with the same problem: backing method is called, but suggest is not shown btw2: should i care abut this log entry? [http-8080-Processor24] ERROR org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader - Unable to find resource resource/Storage_version6.swf for component dojo.DojoResourceLoader. Check that this file is available in the classpath in sub-directory /resource of the package-directory. i have also seen this storage_version_whatever msg in nightly build when clicking in somme dojo integration link. swf stands for flash?
-- http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces

