Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
- <!-- setting the project stage to be DEVELOPMENT -->
- <context-param>
- <param-name>javax.faces.PROJECT_STAGE</param-name>
- <param-value>Development</param-value>
- </context-param>
- <!-- Use client-side state saving. -->
- <context-param>
- <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
- <param-value>client</param-value>
- </context-param>
- <context-param>
- <param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
- <param-value>false</param-value>
- </context-param>
- <context-param>
- <param-name>org.apache.myfaces.trinidadinternal.PPR_OVER_JSF_AJAX</param-name>
- <param-value>off</param-value>
- </context-param>
- <context-param>
- <param-name>org.apache.myfaces.trinidad.CLIENT_STATE_METHOD</param-name>
- <param-value>all</param-value>
- </context-param>
- <!-- Trinidad also supports an optimized strategy for caching some
- view state at an application level, which significantly improves
- scalability. However, it makes it harder to develop (updates to
- pages will not be noticed until the server is restarted), and in
- some rare cases cannot be used for some pages (see Trinidad
- documentation for more information) -->
- <context-param>
- <param-name>org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE</param-name>
- <param-value>false</param-value>
- </context-param>
- <!-- If this parameter is enabled, Trinidad will automatically
- check the modification date of your JSPs, and discard saved
- state when they change; this makes development easier,
- but adds overhead that should be avoided when your application
- is deployed -->
- <context-param>
- <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
- <param-value>true</param-value>
- </context-param>
- <!-- Enables Change Persistence at a session scope. By default,
- Change Persistence is entirely disabled. The ChangeManager is
- an API, which can persist component modifications (like,
- is a showDetail or tree expanded or collapsed). For providing
- a custom Change Persistence implementation inherit from the
- Trinidad API's ChangeManager class. As the value you have
- to use the fullqualified class name. -->
- <!--
- <context-param>
- <param-name>org.apache.myfaces.trinidad.CHANGE_PERSISTENCE</param-name>
- <param-value>session</param-value>
- </context-param>
- -->
- <context-param>
- <param-name>org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS</param-name>
- <param-value>true</param-value>
- </context-param>
- <filter>
- <filter-name>trinidad</filter-name>
- <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
- </filter>
- <filter-mapping>
- <filter-name>trinidad</filter-name>
- <servlet-name>Faces Servlet</servlet-name>
- </filter-mapping>
- <!-- Faces Servlet -->
- <servlet>
- <servlet-name>Faces Servlet</servlet-name>
- <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <!-- resource loader servlet -->
- <servlet>
- <servlet-name>resources</servlet-name>
- <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>Faces Servlet</servlet-name>
- <url-pattern>/faces/*</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>resources</servlet-name>
- <url-pattern>/adf/*</url-pattern>
- </servlet-mapping>
- <session-config>
- <session-timeout>
- 30
- </session-timeout>
- </session-config>
- <welcome-file-list>
- <welcome-file>faces/index.xhtml</welcome-file>
- </welcome-file-list>
- </web-app>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement