Hi,
I have a simple tool bar where there is a search box. When the user hits "Enter" in the text box I want to submit the form which would be to fire the action on the commanLink. Right now it is submitting the form, but just does a refresh. I want to associate the commandLink's actionListener to this event. How do I do that?
Thanks.
<a4j:form id="searchForm">
<rich:toolBar>
<rich:toolBarGroup location="right">
<h:outputLabel value="Customer: " for="cust" />
<h:inputText id="cust" name="custN" value="#{SearchBean.custSearchText}" title="Enter Customer ID" inputWidth="200">
</h:inputText>
<a4j:commandLink id="find" action="customerFind" value="Find"
actionListener="#{SearchBean.custSearchListener}"/>
</rich:toolBarGroup>
</rich:toolBar>
</a4j:form>
Hello,
You can use rich:hotKey coupled with a4j:jsFunction. Search this forum for exact code snippet.