1 | <?xml version="1.0"?> |
---|
2 | |
---|
3 | <!-- |
---|
4 | * Copyright 2004 The Apache Software Foundation. |
---|
5 | * |
---|
6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
---|
7 | * you may not use this file except in compliance with the License. |
---|
8 | * You may obtain a copy of the License at |
---|
9 | * |
---|
10 | * http://www.apache.org/licenses/LICENSE-2.0 |
---|
11 | * |
---|
12 | * Unless required by applicable law or agreed to in writing, software |
---|
13 | * distributed under the License is distributed on an "AS IS" BASIS, |
---|
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
15 | * See the License for the specific language governing permissions and |
---|
16 | * limitations under the License. |
---|
17 | --> |
---|
18 | |
---|
19 | <!DOCTYPE web-app PUBLIC |
---|
20 | "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" |
---|
21 | "http://java.sun.com/dtd/web-app_2_3.dtd"> |
---|
22 | |
---|
23 | <web-app> |
---|
24 | |
---|
25 | <!-- This web.xml can be used during debugging, when there is no myfaces.jar |
---|
26 | library available. |
---|
27 | |
---|
28 | The faces-config.xml file (that is normally in the myfaces.jar) must be |
---|
29 | copied to the /WEB-INF directory of the web context. |
---|
30 | |
---|
31 | The TLDs (that are normally in the myfaces.jar) must be |
---|
32 | copied to the /WEB-INF/lib directory of the web context.--> |
---|
33 | <description>Eccad web-inf xml</description> |
---|
34 | |
---|
35 | <context-param> |
---|
36 | <param-name>javax.faces.CONFIG_FILES</param-name> |
---|
37 | <param-value>/WEB-INF/javaface-config.xml</param-value> |
---|
38 | <description> |
---|
39 | Comma separated list of URIs of (additional) faces config files. |
---|
40 | (e.g. /WEB-INF/my-config.xml) |
---|
41 | See JSF 1.0 PRD2, 10.3.2 |
---|
42 | </description> |
---|
43 | </context-param> |
---|
44 | |
---|
45 | <context-param> |
---|
46 | <param-name>javax.faces.STATE_SAVING_METHOD</param-name> |
---|
47 | <param-value>client</param-value> |
---|
48 | <description> |
---|
49 | State saving method: "client" or "server" (= default) |
---|
50 | See JSF Specification 2.5.2 |
---|
51 | </description> |
---|
52 | </context-param> |
---|
53 | |
---|
54 | <context-param> |
---|
55 | <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name> |
---|
56 | <param-value>true</param-value> |
---|
57 | <description> |
---|
58 | This parameter tells MyFaces if javascript code should be allowed in the |
---|
59 | rendered HTML output. |
---|
60 | If javascript is allowed, command_link anchors will have javascript code |
---|
61 | that submits the corresponding form. |
---|
62 | If javascript is not allowed, the state saving info and nested parameters |
---|
63 | will be added as url parameters. |
---|
64 | Default: "true" |
---|
65 | </description> |
---|
66 | </context-param> |
---|
67 | |
---|
68 | <context-param> |
---|
69 | <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name> |
---|
70 | <param-value>false</param-value> |
---|
71 | </context-param> |
---|
72 | |
---|
73 | <context-param> |
---|
74 | <param-name>org.apache.myfaces.PRETTY_HTML</param-name> |
---|
75 | <param-value>true</param-value> |
---|
76 | <description> |
---|
77 | If true, rendered HTML code will be formatted, so that it is "human readable". |
---|
78 | i.e. additional line separators and whitespace will be written, that do not |
---|
79 | influence the HTML code. |
---|
80 | Default: "true" |
---|
81 | </description> |
---|
82 | </context-param> |
---|
83 | |
---|
84 | <context-param> |
---|
85 | <param-name>org.apache.myfaces.AUTO_SCROLL</param-name> |
---|
86 | <param-value>true</param-value> |
---|
87 | <description> |
---|
88 | If true, a javascript function will be rendered that is able to restore the |
---|
89 | former vertical scroll on every request. Convenient feature if you have pages |
---|
90 | with long lists and you do not want the browser page to always jump to the top |
---|
91 | if you trigger a link or button action that stays on the same page. |
---|
92 | Default: "false" |
---|
93 | </description> |
---|
94 | </context-param> |
---|
95 | |
---|
96 | |
---|
97 | <!-- tipTool--> |
---|
98 | <context-param> |
---|
99 | <param-name>org.richfaces.SKIN</param-name> |
---|
100 | <param-value>blueSky</param-value> |
---|
101 | </context-param> |
---|
102 | |
---|
103 | |
---|
104 | <filter> |
---|
105 | <display-name>RichFaces Filter</display-name> |
---|
106 | <filter-name>richfaces</filter-name> |
---|
107 | <filter-class>org.ajax4jsf.Filter</filter-class> |
---|
108 | </filter> |
---|
109 | |
---|
110 | <filter-mapping> |
---|
111 | <filter-name>richfaces</filter-name> |
---|
112 | <servlet-name>Faces Servlet</servlet-name> |
---|
113 | <dispatcher>REQUEST</dispatcher> |
---|
114 | <dispatcher>FORWARD</dispatcher> |
---|
115 | <dispatcher>INCLUDE</dispatcher> |
---|
116 | </filter-mapping> |
---|
117 | |
---|
118 | |
---|
119 | |
---|
120 | <!-- Extensions Filter --> |
---|
121 | <filter> |
---|
122 | <filter-name>extensionsFilter</filter-name> |
---|
123 | <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class> |
---|
124 | <init-param> |
---|
125 | <param-name>uploadMaxFileSize</param-name> |
---|
126 | <param-value>100m</param-value> |
---|
127 | <description>Set the size limit for uploaded files. |
---|
128 | Format: 10 - 10 bytes |
---|
129 | 10k - 10 KB |
---|
130 | 10m - 10 MB |
---|
131 | 1g - 1 GB |
---|
132 | </description> |
---|
133 | </init-param> |
---|
134 | <init-param> |
---|
135 | <param-name>uploadThresholdSize</param-name> |
---|
136 | <param-value>100k</param-value> |
---|
137 | <description>Set the threshold size - files |
---|
138 | below this limit are stored in memory, files above |
---|
139 | this limit are stored on disk. |
---|
140 | |
---|
141 | Format: 10 - 10 bytes |
---|
142 | 10k - 10 KB |
---|
143 | 10m - 10 MB |
---|
144 | 1g - 1 GB |
---|
145 | </description> |
---|
146 | </init-param> |
---|
147 | <!-- <init-param> |
---|
148 | <param-name>uploadRepositoryPath</param-name> |
---|
149 | <param-value>/temp</param-value> |
---|
150 | <description>Set the path where the intermediary files will be stored. |
---|
151 | </description> |
---|
152 | </init-param>--> |
---|
153 | </filter> |
---|
154 | <!--Servlet Filter that handles site authorization.--> |
---|
155 | <filter-mapping> |
---|
156 | <filter-name>extensionsFilter</filter-name> |
---|
157 | <url-pattern>*.jsf</url-pattern> |
---|
158 | </filter-mapping> |
---|
159 | <filter-mapping> |
---|
160 | <filter-name>extensionsFilter</filter-name> |
---|
161 | <url-pattern>/faces/*</url-pattern> |
---|
162 | </filter-mapping> |
---|
163 | |
---|
164 | |
---|
165 | <!-- Faces Servlet --> |
---|
166 | <servlet> |
---|
167 | <servlet-name>Faces Servlet</servlet-name> |
---|
168 | <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> |
---|
169 | <load-on-startup>1</load-on-startup> |
---|
170 | </servlet> |
---|
171 | <servlet> |
---|
172 | <servlet-name>ServletService</servlet-name> |
---|
173 | <display-name>ServletService</display-name> |
---|
174 | <description>servlet d'impression</description> |
---|
175 | <servlet-class>org.medias.eccad.servlet.ServletService</servlet-class> |
---|
176 | </servlet> |
---|
177 | <!-- Faces Servlet Mapping --> |
---|
178 | |
---|
179 | <!-- virtual path mapping --> |
---|
180 | <!-- |
---|
181 | <servlet-mapping> |
---|
182 | <servlet-name>Faces Servlet</servlet-name> |
---|
183 | <url-pattern>/faces/*</url-pattern> |
---|
184 | </servlet-mapping> |
---|
185 | --> |
---|
186 | |
---|
187 | <!-- extension mapping --> |
---|
188 | <servlet-mapping> |
---|
189 | <servlet-name>Faces Servlet</servlet-name> |
---|
190 | <url-pattern>*.jsf</url-pattern> |
---|
191 | </servlet-mapping> |
---|
192 | <servlet-mapping> |
---|
193 | <servlet-name>ServletService</servlet-name> |
---|
194 | <url-pattern>/Service</url-pattern> |
---|
195 | </servlet-mapping> |
---|
196 | <!-- Welcome files --> |
---|
197 | <session-config> |
---|
198 | <session-timeout>15</session-timeout> <!-- minute --> |
---|
199 | </session-config> |
---|
200 | <welcome-file-list> |
---|
201 | <welcome-file>index.jsp</welcome-file> |
---|
202 | <welcome-file>index.html</welcome-file> |
---|
203 | </welcome-file-list> |
---|
204 | <error-page> |
---|
205 | <exception-type>javax.faces.el.EvaluationException</exception-type> |
---|
206 | <location>/JSF/pageError.jsf</location> |
---|
207 | </error-page> |
---|
208 | <error-page> |
---|
209 | <exception-type>javax.servlet.jsp.JspException</exception-type> |
---|
210 | <location>/JSF/pageError.jsf</location> |
---|
211 | </error-page> |
---|
212 | <error-page> |
---|
213 | <exception-type>javax.faces.FacesException</exception-type> |
---|
214 | <location>/JSF/pageError.jsf</location> |
---|
215 | </error-page> |
---|
216 | <error-page> |
---|
217 | <exception-type>org.apache.jasper.JasperException</exception-type> |
---|
218 | <location>/JSF/pageError.jsf</location> |
---|
219 | </error-page> |
---|
220 | </web-app> |
---|