【发布时间】:2011-07-11 16:30:01
【问题描述】:
我使用rich:menuItem 来显示rich:modalpanel。 rich:menuItem的代码如下:
<rich:menuItem>
<a4j:commandLink
value="Add Machine"
oncomplete="#{rich:component('addMachinePanel')}.show()"
reRender="addMachinePanel">
</a4j:commandLink>
</rich:menuItem>
而rich:modalpanel 代码是
<rich:modalPanel id="addMachinePanel">
<a4j:form>
<a4j:commandButton value="Cancel"
action="#{adminBean.cleanupMachineToEdit}"
onclick="#{rich:component('addMachinePanel')}.hide(); return false;" />
</a4j:form>
</rich:modalPanel>
使用上面的代码,rich:modalpanel 会出现一两秒然后又消失。 请帮我找出问题。
谢谢
【问题讨论】: