Advertisement
Guest User

Untitled

a guest
Nov 17th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.24 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <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">
  3. <!-- setting the project stage to be DEVELOPMENT -->
  4.  
  5. <context-param>
  6. <param-name>javax.faces.PROJECT_STAGE</param-name>
  7. <param-value>Development</param-value>
  8. </context-param>
  9.  
  10. <!-- Use client-side state saving. -->
  11. <context-param>
  12. <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  13. <param-value>client</param-value>
  14. </context-param>
  15.  
  16. <context-param>
  17. <param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
  18. <param-value>false</param-value>
  19. </context-param>
  20.  
  21. <context-param>
  22. <param-name>org.apache.myfaces.trinidadinternal.PPR_OVER_JSF_AJAX</param-name>
  23. <param-value>off</param-value>
  24. </context-param>
  25.  
  26. <context-param>
  27. <param-name>org.apache.myfaces.trinidad.CLIENT_STATE_METHOD</param-name>
  28. <param-value>all</param-value>
  29. </context-param>
  30.  
  31. <!-- Trinidad also supports an optimized strategy for caching some
  32. view state at an application level, which significantly improves
  33. scalability. However, it makes it harder to develop (updates to
  34. pages will not be noticed until the server is restarted), and in
  35. some rare cases cannot be used for some pages (see Trinidad
  36. documentation for more information) -->
  37. <context-param>
  38. <param-name>org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE</param-name>
  39. <param-value>false</param-value>
  40. </context-param>
  41.  
  42. <!-- If this parameter is enabled, Trinidad will automatically
  43. check the modification date of your JSPs, and discard saved
  44. state when they change; this makes development easier,
  45. but adds overhead that should be avoided when your application
  46. is deployed -->
  47. <context-param>
  48. <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
  49. <param-value>true</param-value>
  50. </context-param>
  51.  
  52. <!-- Enables Change Persistence at a session scope. By default,
  53. Change Persistence is entirely disabled. The ChangeManager is
  54. an API, which can persist component modifications (like,
  55. is a showDetail or tree expanded or collapsed). For providing
  56. a custom Change Persistence implementation inherit from the
  57. Trinidad API's ChangeManager class. As the value you have
  58. to use the fullqualified class name. -->
  59. <!--
  60. <context-param>
  61. <param-name>org.apache.myfaces.trinidad.CHANGE_PERSISTENCE</param-name>
  62. <param-value>session</param-value>
  63. </context-param>
  64. -->
  65.  
  66. <context-param>
  67. <param-name>org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS</param-name>
  68. <param-value>true</param-value>
  69. </context-param>
  70.  
  71. <filter>
  72. <filter-name>trinidad</filter-name>
  73. <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
  74. </filter>
  75.  
  76. <filter-mapping>
  77. <filter-name>trinidad</filter-name>
  78. <servlet-name>Faces Servlet</servlet-name>
  79. </filter-mapping>
  80. <!-- Faces Servlet -->
  81. <servlet>
  82. <servlet-name>Faces Servlet</servlet-name>
  83. <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  84. <load-on-startup>1</load-on-startup>
  85. </servlet>
  86. <!-- resource loader servlet -->
  87. <servlet>
  88. <servlet-name>resources</servlet-name>
  89. <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
  90. </servlet>
  91.  
  92. <servlet-mapping>
  93. <servlet-name>Faces Servlet</servlet-name>
  94. <url-pattern>/faces/*</url-pattern>
  95. </servlet-mapping>
  96.  
  97. <servlet-mapping>
  98. <servlet-name>resources</servlet-name>
  99. <url-pattern>/adf/*</url-pattern>
  100. </servlet-mapping>
  101.  
  102. <session-config>
  103. <session-timeout>
  104. 30
  105. </session-timeout>
  106. </session-config>
  107.  
  108. <welcome-file-list>
  109. <welcome-file>faces/index.xhtml</welcome-file>
  110. </welcome-file-list>
  111.  
  112. </web-app>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement