Richfaces 中<rich:modalPanel />有3中开启与关闭的方式分别如下
1.使用<rich:componentControl />标签
<h:graphicImage value="/open.png" id="showlink"/>
<rich:componentControl for="modalPanelId" attachTo="showlink" operation="show" event="on
<h:graphicImage value="/close.png" id="hidelink"/>
<rich:componentControl for="modalPaneld" attachTo="hidelink" operation="hide" event="on
2.使用含有EL的js调用方式 ------这种方法我没测试成功。页面报错
<a href="#" on
<a href="#" on
3.js方式(调用richefaces内置的js) ------一直都用这种方式
Richfaces.showModalPanel('modalPaneld')//开启
Richfaces.hideModalPanel('modalPaneld')//关闭
-----------------------------------
http://love-love-l.blog.163.com/blog/static/210783042010015111547181/