modalPanel 使用:
<a href="#" οnclick="#{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">
<h utputText 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 <a4j:include> 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="#"
οnclick="#{rich:component('mp')}.hide()">hide this panel</a>: <f:verbatim>#</f:verbatim>{rich:component('mp')}.hide()</p>
</rich:modalPanel>
<a href="#" οnclick="#{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">
<h utputText 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 <a4j:include> 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="#"
οnclick="#{rich:component('mp')}.hide()">hide this panel</a>: <f:verbatim>#</f:verbatim>{rich:component('mp')}.hide()</p>
</rich:modalPanel>