【发布时间】:2017-06-02 10:49:12
【问题描述】:
我正在使用 rich:ModalPanel 插入一些用户,但我的 commandButton 中的操作似乎没有响应。
<rich:modalPanel id="panel" moveable="true" top="150" width="400" autosized="true">
<h:form id="uploadForm">
<a4j:outputPanel id="uploadOutputPanel">
<h:panelGrid id="uploadPanelGridId" columns="2">
<h:inputText value="#{adminModele.checkerNumber}"/>
<a4j:commandButton value="save"
action="#{OperationController.add}"
oncomplete="if (#{facesContext.maximumSeverity==null}){#{rich:component('LogAddDownloadPanel')}.hide();}"/>
<h:outputText value="Uploaded File Name : #{adminModele.checkerNumber}"/>
</h:panelGrid>
</a4j:outputPanel>
</h:form>
</rich:modalPanel>
【问题讨论】:
-
它是否在您的支持 bean 中调用 add() 方法?在方法顶部打印一些东西并检查它是否打印。
-
是的,我当然这样做了,如果我在 rich:modalPanel 外面按下按钮,它工作正常,但是当它在里面时,onCLick 不会采取任何行动
-
如果您从按钮中删除 oncomplete 是否有效?
-
不,它不起作用
-
如果删除rich:modalPanel 会怎样?