AutoComplete throwing IllegalArgumentException

UI Components for JSF
Post Reply
hfcprime
Posts: 108
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 5.2.4, CLI 1.6.8, PrimeNG 5.2.0, Chrome 64.0.3282.186, Angular CLI project in Webclipse IDE, Win 10 Pro

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

20 Jun 2011, 20:59

Nevah mind...I left the expression notation off the complete property...
ENVIRONMENT
Angular 5.2.4, CLI 1.6.8, PrimeNG 5.2.0, Chrome 64.0.3282.186, Angular CLI project in Webclipse IDE, Win 10 Pro

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Seo-Ul-But and 17 guests