I wonder if I can use the execute attribute of the a4j:commandLink
component to submit a form using the form id. Here is my code:
<h:form id="myForm">
// fields and values and stuff.....
</h:form>
<a4j:region>
<a4j:commandLink execute="myForm" id="myLink" value="Click Here" render="someComponent" actionListener="#{myBean.myAction}"/>
</a4j:region>
If this is not doable, please suggest me some other way to achieve this.