1
我用rich:menuItem来显示rich:modalpanel。丰富的代码:菜单项是如下:rich:modalPanel只出现几秒钟
<rich:menuItem>
<a4j:commandLink
value="Add Machine"
oncomplete="#{rich:component('addMachinePanel')}.show()"
reRender="addMachinePanel">
</a4j:commandLink>
</rich:menuItem>
和丰富: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>
通过上面的代码,丰富的:modalpanel是出现了一两秒钟,然后再次消失。 请帮我找出问题。
感谢
谢谢, 它的工作 – user811602