Autocomplete pojos not working

UI Components for JSF
Post Reply
tantasaratanta
Posts: 4
Joined: 22 May 2017, 09:46

23 May 2017, 13:07

selectOneMenu its working with the same pojo and converter. The problem should be in the Autocomplete component. Somebody can help me?

Code: Select all

   <p:autoComplete value="#{b.objSelc}"
                completeMethod="#{b.Objs}"
                var="obj"
                id="autocomplete"
                itemLabel="#{obj.name}"
                itemValue="#{obj}"
                dropdown="true"
                converter="ObjConverter"></p:autoComplete>
Not appear any error, just autocomplete not complete.

sturmfrisur
Posts: 1
Joined: 24 May 2017, 13:00

24 May 2017, 13:39

Can you please check, if you get the same error messages on the Javascript console and provide more information about the versions and your environment?

Appearingly, we have the same problem, that autocompletion does not work at all, for version 5.3 and now 6.1.
Using Firefox and the built-in debugging tool, we get an XML-parse error each time an AJAX response is coming in. This error does not show up in Firebug:
XML Parsing Error: XML or text declaration not at start of entity
The response, which can be inspected in the network section of the debugger, shows that the preceding XML declaration has been added twice:

Code: Select all

<?xml version='1.0' encoding='UTF-8'?>
<?xml version='1.0' encoding='UTF-8'?>
<partial-response id="j_id1"><changes><update id="dataCollectionForm:j_i...
Last but not least, everything is working fine on the local machine - regardless of the used server environment (tested with Maven Tomcat7 plugin vs. solely Tomcat8)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests