2 Replies Latest reply on Feb 26, 2010 5:07 AM by ilya_shaikovsky

    Rich face web application spped issue

       

      Please suggeste for improvment of my web application speed. All my .xthml avaible in /pages folder.Please review the web.xml (Please do not give a url link) I.e I wil direct paste your suggested into my project.

       

       

      <?

       

      xml version="1.0" encoding="UTF-8"?>

      <

       

      web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"

       

       

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

       

      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

       

       

       

       

      <description></description>

       

      <display-name></display-name>

       

      <context-param>

       

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

       

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

       

      </context-param>

       

      <context-param>

       

      <param-name>facelets.REFRESH_PERIOD</param-name>

       

      <param-value>2</param-value>

       

      </context-param>

       

      <context-param>

       

      <param-name>facelets.DEVELOPMENT</param-name>

       

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

       

      </context-param>

       

      <context-param>

       

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

       

      <param-value>client</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.ajax4jsf.VIEW_HANDLERS</param-name>

       

      <param-value>com.sun.facelets.FaceletViewHandler</param-value>

       

      </context-param>

       

      <context-param>

       

      <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>

       

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

       

      </context-param>

       

      <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>

       

      <context-param>

       

      <param-name>org.ajax4jsf.COMPRESS_STYLE</param-name>

       

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

       

      </context-param>

       

      <context-param>

       

      <param-name>org.ajax4jsf.xmlparser.ORDER</param-name>

       

      <param-value>NEKO, TIDY</param-value>

       

      </context-param>

       

       

      <filter>

       

      <display-name>Ajax4jsf Filter</display-name>

       

      <filter-name>ajax4jsf</filter-name>

       

      <filter-class>org.ajax4jsf.FastFilter</filter-class>

       

      </filter>

       

      <filter-mapping>

       

      <filter-name>ajax4jsf</filter-name>

       

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

       

      <dispatcher>FORWARD</dispatcher>

       

      <dispatcher>REQUEST</dispatcher>

       

      <dispatcher>INCLUDE</dispatcher>

       

      <dispatcher>ERROR</dispatcher>

       

      </filter-mapping>

       

      <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>*.jsf</url-pattern>

       

      </servlet-mapping>

       

      <login-config>

       

      <auth-method>BASIC</auth-method>

       

      </login-config>

       

       

      <filter>

       

      <filter-name>GZIPFilter</filter-name>

       

      <filter-class>com.jspbook.GZIPFilter</filter-class>

      </

       

      filter>

       

      <filter-mapping>

       

      <filter-name>GZIPFilter</filter-name>

       

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

       

      </filter-mapping>

       

       

      <filter>

       

      <filter-name>CacheFilter</filter-name>

       

      <filter-class>com.jspbook.CacheFilter</filter-class>

       

      </filter>

       

       

      <filter-mapping>

       

      <filter-name>CacheFilter</filter-name>

       

      <url-pattern>/TimeMonger.jsp</url-pattern>

       

      <init-param>

       

      <param-name>cacheTimeout</param-name>

       

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

       

      </init-param>

       

      </filter-mapping>

       

      <filter>

       

      <filter-name>HibernateFilter</filter-name>

       

      <filter-class>com.cl.lbs.presentation.filter.HibernateSessionRequestFilter</filter-class>

       

      </filter>

       

      <filter-mapping>

       

      <filter-name>HibernateFilter</filter-name>

       

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

       

      </filter-mapping>

       

       

       

      </

       

      web-app>