1 Reply Latest reply on Apr 13, 2007 12:56 PM by Sergey Smirnov

    JavaScript Exception witz ModalPanel

    Alexander Thömmes Newbie

      Hallo I have a Problem with the Modal Panel. I wan't to include a modal Panal in a JSF Page put when i click the Link to open the Panel a JavaScript Exception is thrown. $(id) has no properties.

      I don' know where the Problem is because it is the same Code as in the Domo of the RichFaces Demopage.

      ...
       <htm:td>
       <f:verbatim>
       <a href="javascript:Richfaces.showModalPanel('mp',{width:450, top:200})">irgendwas</a>
       </f:verbatim>
       <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>
       <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="javascript:Richfaces.hideModalPanel('mp')">hide this panel</a>:
       Richfaces.hideModalPanel('mp')</p>
       </rich:modalPanel>
       </htm:td>
      ...