在Oracle ADF中第二次单击该按钮时,弹出菜单不显示



第一次点击按钮时,弹出窗口会出现,但从第二次点击开始,弹出窗口不会出现。

<af:popup id="p1" contentDelivery="lazyUncached" autoCancel="diabled">
<af:dialog type="yesNo" title="" dialogListner="pageflowScope.testBean.popupListner>
<af:panelGroupLayout id="pg15" layout="scroll">
<af:panelGroupLayout id="pg15" layout="vertical">
<af:outputText value="Do you want to save the document?" id="ot2">
</af:panelGroupLayout>
</af:panelGroupLayout>
</af:dialog>
</af:popup>
public void saveActionListner(ActionEvent actionEvent){
RichPopup popup = (RichPopup) JSFUtils.findComponentInRoot("p1");
popup.show(new RichPopup.popupHints);
<af:commandButton text="save" id="cb1" actionListner="#{pageflowScope.testBean.saveActionListner} action="#{pageflowScope.testBean.outcome}" partialTriggers="#{pageflowScope.testBean.updatedStatus}" partialSubmit="true">
</af:commandButton>

为什么要使用actionListener和命令按钮上的操作?actionListener应该足够了。

显示弹出窗口然后直接导航离开是没有意义的。删除按钮中的操作,看看这是否解决了问题。

如果您仍然有同样的问题,请检查日志文件中是否有任何错误。您也应该查看浏览器控制台,并在那里检查JavaScript错误。

最新更新