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
NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
This topic has been locked.
2 replies Latest Post - 2012-03-19T06:01:40Z by SwapnilSingh2012
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 PostsACCEPTED ANSWER
Re: In single ajax call i need to submit on form and refresh the second form.2012-03-15T13:32:44Z in response to SwapnilInfiniteAre 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 PostACCEPTED ANSWER
Re: In single ajax call i need to submit on form and refresh the second form.2012-03-19T06:01:40Z in response to SystemAdminI tested in Mozilla Firefox with firebug enabled its calling ajax single time, but still i need to display messages twice one for field level and other for header level.