From jira-events at lists.jboss.org Fri Oct 29 10:04:54 2010 Content-Type: multipart/mixed; boundary="===============1632502127267897643==" MIME-Version: 1.0 From: Ilya Shaikovsky (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Commented: (RF-9305) Autocomplete: add information about clientFilter attribute Date: Fri, 29 Oct 2010 10:04:54 -0400 Message-ID: <953555872.30816.1288361094787.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com> In-Reply-To: 1400491582.2371.1283444932532.JavaMail.tomcat@jira02.app.mwc.hst.phx2.redhat.com --===============1632502127267897643== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://jira.jboss.org/browse/RF-9305?page=3Dcom.atlassian.jira.plugi= n.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12560271#action= _12560271 ] = Ilya Shaikovsky commented on RF-9305: ------------------------------------- as I written at demo:

Except the server-side "autocomplete" method which could be used to collect suggestion strings according to entered prefix, rich= :autocomplete allows to define similar method for filtering at client side. It should be defined using clientFilterFunction attribute which accepts custom filter function name. Function should accepts two parameters sub= String(current input value considering tokens) and value(currently iterated item value) and return boolean flag which means if the value satisfies the substring passed. The function will be called for every available suggestion in order to construct new list of suggestions.

This sample shows how to change the client filtering to "contains" instead of "startsWith"

and example: > Autocomplete: add information about clientFilter attribute > ---------------------------------------------------------- > > Key: RF-9305 > URL: https://jira.jboss.org/browse/RF-9305 > Project: RichFaces > Issue Type: Sub-task > Security Level: Public(Everyone can see) = > Components: doc > Affects Versions: 4.0.0.Milestone2 > Reporter: Pavel Yaschenko > Assignee: Ilya Shaikovsky > Fix For: 4.0.0.Milestone4 > > -- = This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= ps://jira.jboss.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============1632502127267897643==--