1 Reply Latest reply on Nov 18, 2011 12:15 PM by Dale Prather

    Zero Javascript files are reaching my browser when using richfaces tree

    Dale Prather Newbie

      I've narrowed my problem down in this post

       

      http://community.jboss.org/message/637194#637194

       

      down to the javascript files aren't reaching the browser.  Richfaces is not populating the <head>.  It's empty.  Does anyone know why this is/not happening?  I'm using jsf1.2.  I've heard that I need <h:head>, but jsf1.2 doesn't support that.

       

      Thanks!  I look forward to your answers.

        • 1. Re: Zero Javascript files are reaching my browser when using richfaces tree
          Dale Prather Newbie

          t

          So I figured out what the problem was. For some reason Richfaces was not sending the script or styling files to the browser. It dynamically puts the links in the head. So I add the following filters to the web.xml file and everything is happy now including me and my partner.

          <context-param>
             
          <param-name>org.richfaces.LoadStyleStrategy</param-name>
             
          <param-value>ALL</param-value>
          </context-param>
          <context-param>
             
          <param-name>org.richfaces.LoadScriptStrategy</param-name>
             
          <param-value>ALL</param-value>
          </context-param>

          Hopefully this helps someone else.