I have a page that has a table list through AJAX pagination, all custom. Pagination is working properly, but the Enter key clears the form input's values instead of submitting. My submit button makes an AJAX post that causes the table to reexecute and rerender.
How can I make sure that all form inputs handle the Enter button and submit the AJAX form?
This is my submit button:
<f:ajax execute="@form" render=":formlistproposta" onevent="showProgress">
<h:commandLink styleClass="link" value="#{msg.menu_search_top_all}"
actionListener="#{propostaBean.search}" onclick="clearForm();">
</h:commandLink>
</f:ajax>
How can I make sure that whenever I press the Enter key on any of the form's input my AJAX for will be submitted?