欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

rich:componentControl richfacesBlogHTML 

程序员文章站 2022-07-15 16:43:11
...

http://hi.baidu.com/lvsiquan/blog/item/639a9189ce2d3fb90f2444ba.html
<rich:modalPanel id="deleteMsgPanel" top="120px" left="250px" height="152" width="342" autosized="true">
    <div class="panel-content">

   <span class="panel-header">系统提示</span>


    <p class="panel-text">您选择的该条记录删除后将无法恢复,请确认是否删除!</p>


    <p class="panel-button">

     <h:commandButton id="deleteOk" action="#{testVoucherBean.deleteData}" value="确 定" /> <rich:componentControl
     for="deleteMsgPanel" attachTo="deleteOk" operation="hide"
     event="onclick" /> &nbsp;

<input id="deleteCancel" class="button" type="button" value="取 消" />

<rich:componentControl
     for="deleteMsgPanel" attachTo="deleteCancel" operation="hide"
     event="onclick" /></p>
    </div>
   </rich:modalPanel>


rich:componentControl应是用来关闭rich:modalPanel的。至于rich:modalPanel使用时的注意事项,网上很多,不赘述。


http://john521.iteye.com/blog/493945 介绍richfaces 经典记录