1 Reply Latest reply on Jan 25, 2011 12:19 PM by franksparr

    Stylesheet/skin not applied after validation error

    franksparr

      I am using Rich Faces 4.0.0.20101226-M5, MyFaces 2.0.3, and the Facelets library included in Rich Faces 4.

       

      When I first load a page, the skin/style sheets are correctly applied and everything looks great.  When I submit the form with data that causes a validation error, the skin is not applied to the resulting page.

       

      Here are the before and after CSS reports from FireBug:

      beforeValidationError.jpg

       

      And after the post back:

      afterValidationError.JPG

       

      Here's the pertinant part of my web.xml configuration:

       

           <context-param>

              <param-name>javax.faces.FACELETS_REFRESH_PERIOD</param-name>

              <param-value>1</param-value>

          </context-param>

       

          <context-param>

              <param-name>org.richfaces.SKIN</param-name>

              <param-value>blueSky</param-value>

          </context-param>

       

          <context-param>

              <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>

              <param-value>true</param-value>

          </context-param>

       

          <context-param>

              <param-name>javax.faces.DEFAULT_SUFFIX</param-name>

              <param-value>.xhtml</param-value>

          </context-param>

       

           <servlet>

              <servlet-name>Faces Servlet</servlet-name>

              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

              <load-on-startup>1</load-on-startup>

          </servlet>

          <servlet-mapping>

              <servlet-name>Faces Servlet</servlet-name>

              <url-pattern>*.faces</url-pattern>

              <url-pattern>/faces/*</url-pattern>

          </servlet-mapping>