非常简单:
<a4j:commandButton id="bob"
action="#{MyBacking.doAction}"
image="/img/btn.png"
reRender="stuff"
oncomplete="#{not empty MyBacking.myCondition ? #{rich:component('myModelPanel')}.show()" : <do nothing>}"
ajaxSingle="true">
</a4j:commandButton>
那显然是无效的EL。我以这种方式有条件地显示 myModelPanel 的最简洁方法是什么?
谢谢 IA
最佳答案
尝试调用空的 JS 方法
关于richfaces - 有条件地显示 Richfaces 模式面板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2746678/