<?xml version="1.0"?>

<!DOCTYPE web-app PUBLIC
  "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
  "http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
  <display-name>Perforce JViews Gantt Faces: Facelets Sample</display-name>
  <description>This application shows how to use JViews Gantt with facelets</description>
        <!-- strings put before each "script" element. Since facelets already add "CDATA", this is not useful -->
    <context-param>
        <param-name>ilog.views.faces.START_SCRIPT_SECTION</param-name>
        <param-value></param-value>
    </context-param>
        <!-- strings put after each "script" element. Since facelets already close the "CDATA", this is not useful -->
    <context-param>
        <param-name>ilog.views.faces.END_SCRIPT_SECTION</param-name>
        <param-value></param-value>
    </context-param>
     <!-- Use client-side state saving.  That is almost always a
       better choice than the standard JSF server-side state saving. -->
  <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
  </context-param>
        <!-- URL towards JViews "image" servlet -->
  <context-param>
    <param-name>ilog.views.faces.CONTROLLER_PATH</param-name>
    <param-value>/_contr</param-value>
  </context-param>
        <!-- Optional JSF-RI Parameters to Help Debug -->
    <context-param>
        <param-name>com.sun.faces.validateXml</param-name>
        <param-value>true</param-value>
    </context-param>
          <context-param>
            <param-name>com.sun.faces.verifyObjects</param-name>
            <param-value>true</param-value>
          </context-param>
    <!--  get around a bug in trinidad that prevents tr:showDetailItem to work properly -->
    <context-param>
      <param-name>org.apache.myfaces.trinidadinternal.PPR_OVER_JSF_AJAX</param-name> 
      <param-value>off</param-value>
    </context-param>
          <!-- Use documents saved as *.xhtml for Facelets -->
    <context-param>
      <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
      <param-value>.xhtml</param-value>
    </context-param>
    <!-- Facelet libraries -->
    <context-param>
      <param-name>facelets.LIBRARIES</param-name>
      <param-value>/WEB-INF/facelets/custom.xml</param-value>
     </context-param>

    <!-- Special Debug Output for Development -->
    <context-param>
      <param-name>facelets.DEVELOPMENT</param-name>
      <param-value>true</param-value>
    </context-param>

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

        <!-- JViews "image" servlet -->
  <servlet>
    <servlet-name>Controller</servlet-name>
    <servlet-class>ilog.views.faces.IlvFacesController</servlet-class>
    <load-on-startup> 1 </load-on-startup>
  </servlet>
  <!-- Faces Servlet Mapping -->
  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
  </servlet-mapping>
        <!-- JViews "Image" Servlet Mapping -->
  <servlet-mapping>
    <servlet-name>Controller</servlet-name>
    <url-pattern>/_contr/*</url-pattern>
  </servlet-mapping>
        <!-- Session cleanup time out -->
  <session-config>
          <session-timeout>60</session-timeout>
  </session-config>
  <!-- Welcome File List -->
  <welcome-file-list>
        <welcome-file>faces/index.xhtml</welcome-file>
  </welcome-file-list>
</web-app>