Pop Up Hide is not working properly
Hi Team,
I am working on Jdev 11.1.1.5 and adf 11.1.1.5 and i am facing some issue iwth Pop Up Hide
My requirement : I have Search qiery panel on which if user click the search enetring the parameters of the serach criteria i have to give a popup with the number records fetched for that business logic in Pop Up with the message Total Number of Reocords selected :12 Would you like to proceed with sending Data to Interface with Yes and No button in the PoP Up.
Once the user clicks the yes button we have to close the PopUp and insert recorsd into Database.
The issue i am facing is that pop is not getting closed until all the recorsd are processed.
As the records count is high i.e more than 500 the popup is getting closed until all the records processed to Databse which is giving UI error after some time Connection time out
Here is my Code for that :
<af:panelHeader text="MasterSAFSearch" id="ph1">
<af:query id="qryId1" headerText="Search" disclosed="true"
value="#{bindings.FFMMaserSAFSeachVOCriteriaQuery1.queryDescriptor}"
model="#{bindings.FFMMaserSAFSeachVOCriteriaQuery1.queryModel}"
*queryListener="#{FFMMasterSAFBean.sendToMasterSAF}"*
queryOperationListener="#{bindings.FFMMaserSAFSeachVOCriteriaQuery1.processQueryOperation}"
searchButtonText="Send To MasterSAF" saveQueryMode="hidden"
modeChangeVisible="false" partialTriggers="::p1 ::p2"/>
</af:panelHeader>
<af:popup id="p1" binding="#{FFMMasterSAFBean.myPopup}">
<af:dialog id="d2" type="yesNo" resize="on"
*dialogListener="#{FFMMasterSAFBean.sendToMasterSAF}"*
modal="false" partialTriggers="m2">
<af:message id="m2" messageType="confirmation"
message="Would you like to proceed"
binding="#{FFMMasterSAFBean.popUpmsg}"/>
</af:dialog>
</af:popup>
// this method is for queryListener
public void sendToMasterSAF(QueryEvent queryEvent) {
// Add event code here...
try{
FacesContext facesContext = FacesContext.getCurrentInstance();
String popupId = myPopup.getClientId(facesContext);
logger.info("popupId::"+popupId);
ExtendedRenderKitService extRenderKitSrvc =
Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
popUpmsg.setMessage("");
popUpmsg.setMessage("Total Number of CT-e's : " +count+ " \n\t " +" Would you like to proceed sending CT-e's to MasterSAF");
*extRenderKitSrvc.addScript(facesContext,"AdfPage.PAGE.findComponent('" + popupId + "').show();");*
AdfFacesContext.getCurrentInstance().addPartialTarget(myPopup);
RequestContext.getCurrentInstance().addPartialTarget(this.getPopUpmsg());
}catch(Exception ex){
ex.printStackTrace();
}
// This method is for dialogListener
public void sendToMasterSAF(DialogEvent dialogEvent) {
// Add event code here...
if(dialogEvent.getOutcome().equals(DialogEvent.Outcome.*yes*)){
logger.info("sendToMasterSAF");
DCIteratorBinding iterator =
((DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry()).findIteratorBinding("FFMMasterSAFCTeListVOIterator");
logger.info("iterator::"+iterator.getEstimatedRowCount());
////////////////////////////////////////////////
FacesContext facesContext = FacesContext.getCurrentInstance();
String popupId = myPopup.getClientId(facesContext);
logger.info("popupId::"+popupId);
ExtendedRenderKitService extRenderKitSrvc =
Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
popUpmsg.setMessage("");
*extRenderKitSrvc.addScript(facesContext,"AdfPage.PAGE.findComponent('" + popupId + "').hide();");*
AdfFacesContext.getCurrentInstance().addPartialTarget(myPopup);
RequestContext.getCurrentInstance().addPartialTarget(this.getPopUpmsg());
logger.info("Before Sending data to MasterSAF::");
////////////////////////////////////////////////
BindingContainer rowBindings = getRowBindings();
OperationBinding operationBinding =
rowBindings.getOperationBinding("sendMasterSAFData");
operationBinding.execute();
}
}
Please help me out in resolving out this issue
Edited by: Hemanth C on Apr 10, 2013 4:10 AM