I have the below code:
<h:selectOneRadio value="#{exampleController.Status}" layout="pageDirection">
<f:selectItem itemLabel="Non-Tax Resident" itemValue="NON_TAX_RESIDENT" />
<f:selectItem itemLabel="Tax Resident" itemValue="TAX_RESIDENT"/>
<f:ajax event="click" render="statusID"/>
</h:selectOneRadio>
<input id="statusID" value="#{bean.enteredValue}"/>
When i select the radio button, i want the value to be saved in the bean and then the ajax call to run.
But when i run this code, i see the ajax call being run first.
Could someone let me know what has to be changed?