Board index JavaServer Faces General AutoComplete throwing IllegalArgumentException

AutoComplete throwing IllegalArgumentException

Components, Ajax Framework, Utilities and More.


Posts: 85
I am using AutoComplete in the most basic way. Here is the xhtml

<p:autoComplete id="ldapId" value="#{ldapLoc.ldapId}" completeMethod="ldapLoc.complete"/>


and here is the method on the bean

public List<String> complete(String stub) {
List<String> rtn = autoc.getAutoComplete(stub);
return rtn;
}

This exception is thrown:

SEVERE: java.lang.IllegalArgumentException: Cannot convert ldapLoc.complete of type class java.lang.String to interface java.util.List

It seems straightforward, but apparently not. This uses Prime 3.0.M1, Mojarra 2.04, Tomcat 7.014. Thanks
ENVIRONMENT
Prime Faces 3.4. Mojarra 2.1.11, Tomcat 7.029, Spring Web Flow 2.3.1, Spring Security 3.1.1, Spring 3.1.2, Hibernate 4.1.6


Posts: 85
Nevah mind...I left the expression notation off the complete property...
ENVIRONMENT
Prime Faces 3.4. Mojarra 2.1.11, Tomcat 7.029, Spring Web Flow 2.3.1, Spring Security 3.1.1, Spring 3.1.2, Hibernate 4.1.6


Return to General