I would like to display a rich:suggestionbox when the associated h:inputText gains focus. In other words, I do not want the user to have to type input into the h:inputText before the rich:suggestionbox is displayed. Is this possible?
Here is my current code.
<a4j:region id="emailInputRegion">
<h:inputText id="emailInput"
value="#{release.document.emailAddress}">
</h:inputText>
<rich:suggestionbox
id="EmailSuggestionBoxId"
for="emailInput"
ajaxSingle="true"
suggestionAction="#{entityEmailSuggest.suggest}"
frequency="0"
var="result"
rows="7"
minChars="0"
ignoreDupResponses="true"
bypassUpdates="true"
shadowOpacity="9"
border="1"
width="300"
height="150"
shadowDepth="6"
cellpadding="2">
<h:column id="emailColumn">
<h:outputText id="emailChoice" value="#{result.id}" />
</h:column>
</rich:suggestionbox>
</a4j:region>