Jsf rich:autocomplete don';不显示列表

Jsf rich:autocomplete don';不显示列表,jsf,autocomplete,xhtml,richfaces,Jsf,Autocomplete,Xhtml,Richfaces,我正在尝试实现一个richfaces自动完成组件,问题是从来没有调用过autocompleteMethod <rich:autocomplete id="formacode" styleClass="champ_select310" layout="list" autocompleteList="#{enregistrementFormationsMBean.toShow}" autocom

我正在尝试实现一个richfaces自动完成组件,问题是从来没有调用过autocompleteMethod

                <rich:autocomplete id="formacode" styleClass="champ_select310" layout="list" 
                autocompleteList="#{enregistrementFormationsMBean.toShow}" 
                autocompleteMethod="#{enregistrementFormationsMBean.autocomplete}" 
                value="#{enregistrementFormationsMBean.formacode}">
                </rich:autocomplete>

谢谢你的帮助

看起来资源有问题,是否触发了Ajax请求?html输出:
public String getFormacode() {
    return testDto.getFormacode();
}

public void setFormacode(String formacode) {
    testDto.setFormacode(formacode);
}
public List<String> getToShow() {
    return testDto.getToShow();
}

public void setToShow(List<String> toShow) {
    testDto.setToShow(toShow);
}

public List<String> autocomplete(String prefix) {
    Map<String, String> map;
    List<String> listOfItems = new ArrayList<String>();
    try {
        map = testFacade.getFormacode(prefix);

        for (Entry<String, String> e : map.entrySet()) {
            listOfItems.add(e.getValue());
        }
    } catch (RemoteException | ServiceException e1) {
        e1.printStackTrace();
    }
    setToShow(listOfItems);
    return listOfItems;
}
ERROR [com.liferay.faces.bridge.application.MissingResourceImpl] (http--127.0.0.1-8080-3) Resource handler=[com.liferay.faces.bridge.application.ResourceHandlerOuterImpl@73ceed1] was unable to create a resource for resourceName=[AutocompleteBase.js] libraryName=[org.richfaces.images] contentType=[null]
WARNING [javax.enterprise.resource.webcontainer.jsf.application] (http--127.0.0.1-8080-5) JSF1064 : Impossible de localiser ou de servir une ressource, Autocomplete.js, depuis la bibliothèque org.richfaces.images