| <?xml version="1.0"?> |
| |
| <!-- |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| --> |
| <web-app 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_2_5.xsd" |
| version="2.5"> |
| |
| <description>MyProject web.xml</description> |
| |
| <context-param> |
| <param-name>javax.faces.DEFAULT_SUFFIX</param-name> |
| <param-value>.xhtml</param-value> |
| </context-param> |
| |
| <context-param> |
| <param-name>facelets.LIBRARIES</param-name> |
| <param-value>/WEB-INF/main.taglib.xml</param-value> |
| </context-param> |
| |
| <context-param> |
| <param-name>org.apache.myfaces.trinidad.ENABLE_LIGHTWEIGHT_DIALOGS</param-name> |
| <param-value>true</param-value> |
| </context-param> |
| |
| <context-param> |
| <param-name>org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION</param-name> |
| <param-value>true</param-value> |
| </context-param> |
| |
| <context-param> |
| <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name> |
| <param-value>com.sun.facelets.FaceletViewHandler</param-value> |
| </context-param> |
| |
| <context-param> |
| <param-name>org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE</param-name> |
| <param-value>false</param-value> |
| </context-param> |
| |
| <context-param> |
| <param-name>org.apache.myfaces.trinidad.CHANGE_PERSISTENCE</param-name> |
| <param-value>session</param-value> |
| </context-param> |
| |
| <context-param> |
| <description>State saving method: "client" or "server" (= default) |
| See JSF Specification 2.5.3 |
| </description> |
| <param-name>javax.faces.STATE_SAVING_METHOD</param-name> |
| <param-value>client</param-value> |
| </context-param> |
| <context-param> |
| <description>Only applicable if state saving method is "server" (= default). |
| Defines the amount (default = 20) of the latest views are stored in session. |
| </description> |
| <param-name>org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION</param-name> |
| <param-value>20</param-value> |
| </context-param> |
| <context-param> |
| <description>Only applicable if state saving method is "server" (= default). |
| If true (default) the state will be serialized to a byte stream before it |
| is written to the session. |
| If false the state will not be serialized to a byte stream. |
| </description> |
| <param-name>org.apache.myfaces.SERIALIZE_STATE_IN_SESSION</param-name> |
| <param-value>true</param-value> |
| </context-param> |
| <context-param> |
| <description>Only applicable if state saving method is "server" (= default) and if |
| org.apache.myfaces.SERIALIZE_STATE_IN_SESSION is true (= default) |
| If true (default) the serialized state will be compressed before it |
| is written to the session. If false the state will not be compressed. |
| </description> |
| <param-name>org.apache.myfaces.COMPRESS_STATE_IN_SESSION</param-name> |
| <param-value>true</param-value> |
| </context-param> |
| <context-param> |
| <description>This parameter tells MyFaces if javascript code should be allowed in the |
| rendered HTML output. |
| If javascript is allowed, command_link anchors will have javascript code |
| that submits the corresponding form. |
| If javascript is not allowed, the state saving info and nested parameters |
| will be added as url parameters. |
| Default: "true" |
| </description> |
| <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name> |
| <param-value>true</param-value> |
| </context-param> |
| <context-param> |
| <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name> |
| <param-value>false</param-value> |
| </context-param> |
| <context-param> |
| <description>If true, rendered HTML code will be formatted, so that it is "human readable". |
| i.e. additional line separators and whitespace will be written, that do not |
| influence the HTML code. |
| Default: "true" |
| </description> |
| <param-name>org.apache.myfaces.PRETTY_HTML</param-name> |
| <param-value>true</param-value> |
| </context-param> |
| <context-param> |
| <description>If true, a javascript function will be rendered that is able to restore the |
| former vertical scroll on every request. Convenient feature if you have pages |
| with long lists and you do not want the browser page to always jump to the top |
| if you trigger a link or button action that stays on the same page. |
| Default: "false" |
| </description> |
| <param-name>org.apache.myfaces.AUTO_SCROLL</param-name> |
| <param-value>true</param-value> |
| </context-param> |
| |
| <context-param> |
| <description>Used for encrypting view state. Only relevant for client side |
| state saving. See MyFaces wiki/web site documentation for instructions |
| on how to configure an application for diffenent encryption strengths. |
| </description> |
| <param-name>org.apache.myfaces.SECRET</param-name> |
| <param-value>NzY1NDMyMTA=</param-value> |
| </context-param> |
| |
| <context-param> |
| <description> |
| Validate managed beans, navigation rules and ensure that forms are not nested. |
| </description> |
| <param-name>org.apache.myfaces.VALIDATE</param-name> |
| <param-value>true</param-value> |
| </context-param> |
| |
| <!-- Listener, to allow Jetty serving MyFaces apps --> |
| <listener> |
| <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> |
| </listener> |
| |
| <!-- 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> |
| |
| <servlet> |
| <servlet-name>resources</servlet-name> |
| <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class> |
| </servlet> |
| |
| <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 Mappings --> |
| <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> |
| |
| <!-- Welcome files --> |
| <welcome-file-list> |
| <welcome-file>index.html</welcome-file> |
| </welcome-file-list> |
| |
| </web-app> |