I currently have an a4j:commandbutton implemented on my jsf page. Here is the code snippet-
<a4j:commandButton id="submitBtn" value="#{msgsMass.MM_04_02_BTN_CONTINUE}"
reRender="addNewCardForm,saveAddNewCardForm" immediate="true"
action="#{bBean.retrieveOrderId}" oncomplete="addNewCreditCard()" >
The addNewCardForm and saveAddNewCardForm are html forms displayed on the page which are processed in the javascript function call of addNewCreditCard().
Within these forms, there is an input field that should show the value retrieved from bBean.retrieveOrderId. However, this method is only triggered after the forms are initially loaded with blank orderId values.
If you have any insights or recommendations on how I can display the orderId value on the form fields when they are presented to the user, please do let me know.