Patches item #1498076, was opened at 2006-05-31 13:08
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684977&aid=1498076&group_id=119783

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Karri-Pekka Laakso (kplaakso)
Assigned to: Nobody/Anonymous (nobody)
Summary: Allow search match highlight in autocomplete

Initial Comment:
The current version of AutoCompleteTextField makes it
extremely difficult to highlight the matching substring
of the matching items (the result set), since the
renderer cannot know what the searched string was. An
example:

In a search for persons, the user writes in the
autocomplete field the string "an", and the system
finds the following alternatives:
Anderson Michael
Danish John
Rickenbacker Brian

With the plain list, the user has problems in
understanding why Brian is on the list. With highlight,
it's trivial:
*An*derson Michael
D*an*ish John
Rickenbacker Bri*an*

However, the previous cannot be done very easily with
current autocomplete classes, since the autocomplete
renderer does not know what the search criteria was. 

This can be fixed easily by adding a parameter to the
current render(Object object, Response response) method
of IAutoCompleteRenderer, changing it to render(Object
object, Response response, String criteria).

I've added a patch below that does this change.
Changing the method signature affects 4 classes in the
wicket.extensions.ajax.markup.html.autocomplete package.

 
 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684977&aid=1498076&group_id=119783


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to