Conditionally display a richfaces modal panel

Posted by Mark Lewis on Stack Overflow See other posts from Stack Overflow or by Mark Lewis
Published on 2010-04-30T18:12:24Z Indexed on 2010/04/30 18:17 UTC
Read the original article Hit count: 361

Filed under:
|

Hello

Quite simple:

    <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>

Thats obviously invalid EL. What's the most concise method I conditionally show myModelPanel in this way?

Thanks IA

© Stack Overflow or respective owner

Related posts about richfaces

Related posts about modal