4 Replies Latest reply on May 14, 2011 9:04 PM by teme_h

    Richfaces is not defined (firefox)/ 'Richfaces' is undefined (IE)

    teme_h Newbie

      Hello, I am upgrading our application to Jboss 6 Final (JSF 2.0.3-b5) and Richfaces 4.0 Final. I am running into issues with exising code that calls richfaces javascript from a4j:command oncomplete event. I do define h:head and I see that javascript files are being included but I still run into Richface is undefined javascript error.


      Here is a simlified version that would give the above error in both IE and Firefox when debugged. Am missing something...



      <?xml version='1.0' encoding='UTF-8' ?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
              <a4j:commandButton value="OK" 
                  oncomplete="Richfaces.showModalPanel('popUpPnl')" />
         <rich:popupPanel modal="true" id="popUpPnl">




      - Teme