AutoComplete throwing IllegalArgumentException

Components, Ajax Framework, Utilities and More.
Post Reply
hfcprime
Posts: 100
Joined: 22 Feb 2011, 20:32

20 Jun 2011, 20:56

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
Angular 4.0, PrimeNG 4.0.2, AngularCLI project in AngularIDE,Win 7 Pro

hfcprime
Posts: 100
Joined: 22 Feb 2011, 20:32

20 Jun 2011, 20:59

Nevah mind...I left the expression notation off the complete property...
ENVIRONMENT
Angular 4.0, PrimeNG 4.0.2, AngularCLI project in AngularIDE,Win 7 Pro

Post Reply
  • Information