<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: PrimeFaces: Autocomplete using user dialog method</title><link>https://answers.axonivy.com/questions/61/primefaces-autocomplete-using-user-dialog-method</link><description>&lt;p&gt;Hi there&lt;/p&gt;
&lt;p&gt;I've created some workflows in Ivy 4.x, using the Web Page component in the designer. Most of the functionality was coded with jQuery.&lt;/p&gt;
&lt;p&gt;Now I'd like to switch to Ivy 5. On my old workflow I used jQuery-UI autocomplete to get a list of organization units from our LDAP server. According to the PrimeFaces documentation there is a autocomplete tag. While there are examples on how to use the functions with a regular Java-environement, I couldn't figure out how to use it in Xpert.Ivy.&lt;/p&gt;
&lt;p&gt;What I've got is an user-dialog, consisting of one start method and another method, which should retrieve the results from the LDAP server, based on the query-text in the input field.&lt;/p&gt;
&lt;p&gt;I'd be happy if someone could explain to me, how I'd have to setup the autocomplete tag and what format my method has to return, in order for the autocomplete to work.&lt;/p&gt;
&lt;p&gt;Thank you :)
Ahatius&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/61/primefaces-autocomplete-using-user-dialog-method" rel="self"></atom:link><language>en</language><lastBuildDate>Sun, 10 Nov 2013 00:40:57 -0500</lastBuildDate><item><title>Answer by Flavio Sadeghi</title><link>https://answers.axonivy.com/questions/61/primefaces-autocomplete-using-user-dialog-method/62</link><description>&lt;p&gt;An example project is delivered within Xpert.ivy Designer which points out different aspects of a classic
 formular. On this formular the country selection is implemented with a AutoComplete field. Import the project into your workspace and inspect the demo(s) for an easy reference.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Location of the demo project: &lt;code&gt;[Designer]/applications/samples/HtmlDialogDemos&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;ID/Location of the HTML User Dialog: &lt;code&gt;ch.ivyteam.htmldialog.demo.input.FormDemo&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Basically the method in the Logic get the search-input as String and returns a list of Strings for the proposed selection. Short: &lt;code&gt;List&amp;lt;String&amp;gt;:mySearchMethod(String myUserInput)&lt;/code&gt;. The method is called with  "&lt;code&gt;&amp;lt;p:autoComplete completeMethod="#{logic.mySearchMethod}"&amp;gt;"&lt;/code&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Flavio Sadeghi</dc:creator><pubDate>Sun, 10 Nov 2013 00:40:57 -0500</pubDate><guid>https://answers.axonivy.com/questions/61/primefaces-autocomplete-using-user-dialog-method/62</guid></item></channel></rss>