2008-04-21
Richfaces 中<rich:modalPanel />的开启与关闭方式
Richfaces 中<rich:modalPanel />有3中开启与关闭的方式分别如下
1.使用<rich:componentControl />标签
<h:graphicImage value="/open.png" id="showlink"/>
<rich:componentControl for="modalPanelId" attachTo="showlink" operation="show" event="onclick"/>
<h:graphicImage value="/close.png" id="hidelink"/>
<rich:componentControl for="modalPaneld" attachTo="hidelink" operation="hide" event="onclick"/>
2.使用含有EL的js调用方式
<a href="#" onclick="#{rich:component('modalPaneld')}.show() ">开启</a>
<a href="#" onclick="#{rich:component('modalPaneld')}.hide()">关闭</a>
3.js方式(调用richefaces内置的js)
Richfaces.showModalPanel('modalPaneld')//开启
Richfaces.hideModalPanel('modalPaneld')//关闭
发表评论
我的留言簿
-
NameError: name 'admin' is not defined
...
-- by hqman
最近加入圈子
最新评论
-
freemarker.properties
为了你说我们扣分,而且会关小黑屋,特意来踩一下.哈哈.
-- by awfwxf -
摇滚乐的概念
我喜欢beyond,我眼中的rock 是和平,爱和理想,不是大吵大闹!
-- by beyondsanli -
Richfaces3.2的bug
请问有没有碰到上传组件在上传文件的时候明明文件已经上传成功了,但是关联更新的显示 ...
-- by fjiis -
Richfaces3.2的bug
最讨厌的问题: richfaces 3.1.x支持myfaces 1.1.5 3 ...
-- by wpg -
Richfaces3.2的bug
richfaces3.2.0增加一些新功能,但用起来也是需要代价的呀,呵呵楼主的 ...
-- by chxkyy







评论排行榜