2 Replies Latest reply on May 16, 2007 6:09 AM by Ilya Shaikovsky

    Contents of the modal panel

    Chetan Kadam Newbie

      I am using a4j: 1.1 & Richfaces 3.1, JSF: 1.1

      I am using Modal Panel in my jsp, and in the panel body, I am specifying actual markup along with some JSF components. But the mixed contents dont show up. Only markup related to component is displayed.

      I found this on the demo page of the rich faces, and this example seems to work for you guys :

      <rich:modalPanel id="mp" minHeight="200" minWidth="450"
       height="200" width="500" zindex="2000">
       <f:facet name="header">
       <h:outputText value="Modal Panel Title" />
       <f:facet name="controls">
       <h:graphicImage value="/images/modal/close.png" style="cursor:pointer" onclick="Richfaces.hideModalPanel('mp')" />
       <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="javascript:Richfaces.hideModalPanel('mp')">hide this panel</a>:

      Is it b'cos, I am using JSF 1.1 ? If so, does f:verbatim would help ? I tried to wrap mixed content inside f:verbatim, but does not seem to work ?

      Any ideas ?