3 Replies Latest reply on Apr 17, 2007 5:35 PM by Sergey Smirnov

    missing javascript for rich:ModalPanel

    Steven De Groote Newbie

      I'm trying to use a modal panel but I get a javascript error noting "RichFaces is not defined".

      My jsp contains (amongst other lines) the following:

      <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
      <%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="rich"%>
      ...
      <f:view>
       <html>
       <head>
       <title>Test</title>
       </head>
       <body>
       <a href="javascript:RichFaces.showModalPanel('filter:busy')">Open modal</a>
       <h:form id="filter">
       <rich:modalPanel id="busy">
       Just a bit of text
       <f:verbatim><a href="javascript:RichFaces.hideModalPanel('filter:busy')">Close window</a></f:verbatim>
       </rich:modalPanel>
       </h:form>
       </body>
       </html>
      </f:view>


      Do I need more directives or settings to make my modalPanel work?
      Thanks