I’m currently using a rich suggestionBox component, and it’s working correctly. However, I’m wondering if there is a way to trigger the suggestionBox to show up with no input, from a button-click? If the user doesn’t know where to start, I’d like to provide a button that would bring you all of the suggestions without having to type in any text to use as a filter, if that makes sense.
I have my suggestionBox tied to a database, so it will find suggestions where the field is “ like ‘%’ ”, so the back end would work if you entered nothing, I’m just not sure how to trigger the suggestionBox to pop up.
I'm using RichFaces version 3.3.3.
Thanks.
I've found a solution for this. For any who come across this post, here's how I got this working:
<a4j:commandLink value="..." onclick="#{rich:component('XXXX')}.callSuggestion(true);" />
Where XXXX is the ID of your suggestionBox.