6 Replies Latest reply on Dec 12, 2007 12:33 PM by Marine Wacheux

    Richfaces.showModalPanel not a function

    kelly goedert Apprentice

      Hello,

      I have a page with an modal dialog like this:

      <rich:modalPanel id="panel">
      <f:facet name="header">
      <h:outputText value="header"/>
      </f:facet>
      <h:messages/>
      <a href="javascript:RichFaces.hideModalPanel('form:panel')">Hide
      </rich:modalPanel>

      I wanted that as a result of a command button action on a oncomplete event in a external js file I would have a js function that would show this dialog. I did this on my js file:

      function loginBack(){
      Richfaces.showModalPanel('form:panel',{width:450, top:200});
      }

      This js is imported on the page. When I click the button the loginBack() function is called but I get Richfaces.showModalPanel not a function

      What am I doing wrong? Do I have to import any js files in my file that has loginBack function?

      Thanks

      Kelly