I tried using the <hx:ajaxRefershRequest> for one and <hx:ajaxRefreshSubmit>, but i m unable to refresh form 2, SEE the below code and suggest ,
<h:panelGroup id="hdrmessages" >
<h:messages id="CLMADMMS7" layout="table" showDetail="true"
style="color: red" showSummary="false" />
<hx:ajaxRefreshRequest target="hdrmessages" id="ajaxRefrshRqest3" >
<jsp:include page="/jsp/claimentry/commonclaimentry/claimOverrideException.jsp" />
<hx:ajaxRefreshSubmit id="overridexcptnajax" target="headeroverrideexception" />
<h:commandButton title="Add" id="lineItemAddButton" value=" "
<hx:behavior event="onclick" behaviorAction="get;get" targetAction="headeroverrideexception;hdrmessages" />
when action is perform ajax is successfully submitting the form but the first panel is not refreshed.
Thanks inAdvance for Help
Pinned topic In single ajax call i need to submit on form and refresh the second form.
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-03-19T06:01:40Z at 2012-03-19T06:01:40Z by SwapnilSingh2012
SystemAdmin 110000D4XK6420 Posts
Re: In single ajax call i need to submit on form and refresh the second form.2012-03-15T13:32:44ZThis is the accepted answer. This is the accepted answer.Are you sure the second ajax request isn't being made (you can check by using Firefox with Firebug enabled).
The messages generated by the first ajax submit call are not going to persist and be available for the second call.
You need to either include the messages tag inside the panel being submitted, or you need to modify the action used on the submit to save the messages so that future ajax calls can see them.
SwapnilSingh2012 27000569351 Post
Re: In single ajax call i need to submit on form and refresh the second form.2012-03-19T06:01:40ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK