richfaces modalPanel例子

来源:互联网 发布:mac电脑中病毒怎么杀毒 编辑:程序博客网 时间:2024/05/17 04:58
modalPanel 使用:
<a href="#" onclick="#{rich:component('mp')}.show()">show panel</a>
                <rich:modalPanel id="mp" minHeight="200" minWidth="450" height="200"
                        width="500" zindex="2000">
                        <f:facet name="header">
                                <hutputText value="Modal Panel Title" />
                        </f:facet>
                        <f:facet name="controls">
                        </f:facet>
                        <p>Any JSF content might be inside the panel. In case of using
                        Facelets or JSF 1.2, it might be any mixed content.</p>

                        <p>The RichFaces modal panel is good with &lt;a4j:include&gt; to
                        create a wizard like behavior.</p>
                        <p>The model panel is open and closed from the javascript
                        function on <i>Richfaces</i> object. The following code <a href="#"
                               onclick="#{rich:component('mp')}.hide()">hide this panel</a>:<f:verbatim>&#35;</f:verbatim>{rich:component('mp')}.hide()</p>
                </rich:modalPanel>
原创粉丝点击