[英]jsf a4j not working on popup screen
我在JSF工作
當我打開彈出屏幕時,我的a4j ajax調用不起作用。
如果我不彈出窗口,則同一個屏幕在哪里工作。
這是平常的事嗎?
彈出一頁,這里的代碼很少。
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
延遲設置為
<a4j:queue requestDelay="500" ignoreDupResponses="true" />
和實際的ajax電話一樣
<a4j:commandLink
actionListener="#{insuranceBackingBean.viewAll}"
ajaxSingle="true"
reRender="formularyList, noRecFoundGridForFormulary, patientCurrentDemographicDetails,patientInsuranceDemographicDetails,conflictSection"
eventsQueue="onClick"
onclick="setEligibilityValues('#{insuranceBean.fromEligibility}','#{insuranceBean.payerMessage}','#{insuranceBean.pharmacyBenefitRetailCoverageStatus}','#{insuranceBean.pharmacyBenefitMailOrderCoverageStatus}','#{insuranceBean.pharmacyBenefitLTCCoverageStatus}','#{insuranceBean.pharmacyBenefitSpecialtyCoverageStatus}');setVisibleConflictGrid();"
>
<f:verbatim>View</f:verbatim>
<f:param name="insuranceID" value="#{insuranceBean.id}" />
其中setEligibilityValues
是正在調用的腳本,但未調用insuranceBackingBean.viewAll
。
有什么辦法troubleshoot
這個troubleshoot
嗎???
我不知道您將哪個組件/標簽用作彈出窗口,但是我用不同的組件多次遇到了這個問題,我知道的唯一解決方案是:您應該將彈出窗口作為模式對話框打開。 這意味着它應該在iframe中呈現。
通常,如果沒有將彈出窗口配置為模式窗口,則彈出窗口通常不會在div / span中呈現,並且由於某種原因,ajax調用無法在服務器端執行。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.