0
伙计!我想通过以下方式来创建确认对话框:模式面板块Richfaces确认对话框
<h:form>
<a4j:commandButton id="declareNewStatusCbt" image="/img/buttons/save.png"
styleClass="hoverable rich-panel-button"
onclick="#{rich:component('confirmation')}.show();return false">
</a4j:commandButton>
<a4j:jsFunction name="doSubmit" action="#{customerService.action}"/>
</h:form>
按钮的下面(富:modalPanel有id="confirmation"
):
<h:commandButton image="img/buttons/proceed.png" styleClass="hoverable"
onclick="#{rich:component('confirmation')}.hide();doSubmit();return false;"/>
所以,基本上我需要得到与a4j:commandButton action="#{customerService.action}"
效果相同,但是当我按下模式窗口上的“继续”按钮时,我在FireFox控制台中收到TypeError: this._form is null
,并且页面重新加载。有任何想法吗?
谢谢!