I am using RichFaces 3.3.1 with
JSF 1.2 Mojarra.
For this project I have to provide a "combo box" type control. The user should allowed to enter *any text* and the control will filter on that entry.
For example: if the control has the options of "Alpha, Beta, Gamma, Delta" and the user entered "ta", then "Beta" and "Delta" should appear in the dropdown list.
If the control has the options of "London, Manchester, Winchester, Paris" and the and the user entered "est", then "Manchester" and "Winchester" should appear in the dropdown list.
I know the RichFaces suggestion box exists, but that can only do exact matches I believe, not handle free-text entries.
Does anyone know how I can possibly provide this functionality? I guess I could use a normal inputbox and JQuery, but I'd rather do it all within the RichFaces framework. Will I have to include other implementations (such as Tomahawk) and is that even wise? I'm not looking for the complete solution, but even an idea of where to start or find an example of something similar would be a big help!
The matter is further complicated by having to keep a textbox showing the "code" for the selected item in sync (the user could also type the code in here, meaning the combo box must update). I currently have the syncing working using some simple JavaScript Iw rote (this avoids the performance hit of a round-trip to the server).
I have already swapped once from Apache Trinidad to IBM RichFaces - if at all possible, I'd like to avoid having to switch back; although I will do that if I have to.