6 Replies Latest reply on May 29, 2007 1:24 PM by Vinicius Carvalho

    RichFaces.showModalPanel is not a function

    Vinicius Carvalho Apprentice

      Hello There! I'm trying to use rich:modalPanel but I'm getting a JS error. Here's my code:

      <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:rich="http://richfaces.ajax4jsf.org/rich"
       xmlns:s="http://jboss.com/products/seam/taglib">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <title>opdigital</title>
      <link href="stylesheet/theme.css" rel="stylesheet" type="text/css" />
      <script type="text/javascript" src="seam/resource/remoting/resource/remote.js"></script>
      <a href="javascript:RichFaces.showModalPanel('panel')">Show</a>
      <rich:modalPanel id="panel">
      
       <f:facet name="header"><h:outputText value="Modal Panel"/></f:facet>
      
       <f:facet name="controls">
      
       <a href="javascript:RichFaces.hideModalPanel('panel')">X</a>
      
       </f:facet>
      
      </rich:modalPanel>
      


      Any ideas?

      Best regards