rich标签中有一个模拟关机效果的控件叫modelPanel,如果通过JS来实现modelPanel的弹出和隐藏呢,下面提供了两种方法供使用:
方法一:
1. <a href="#" οnclick="#{rich:component('modelPanel的ID')}.show() ">开启</a>
2. <a href="#" οnclick="#{rich:component('modelPanel的ID')}.hide()">关闭</a>
方法二:
1. Richfaces.showModalPanel('modelPanel的ID')//开启
2. Richfaces.hideModalPanel('modelPanel的ID')//关闭
方法一:
1. <a href="#" οnclick="#{rich:component('modelPanel的ID')}.show() ">开启</a>
2. <a href="#" οnclick="#{rich:component('modelPanel的ID')}.hide()">关闭</a>
方法二:
1. Richfaces.showModalPanel('modelPanel的ID')//开启
2. Richfaces.hideModalPanel('modelPanel的ID')//关闭