You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ma...@apache.org on 2004/12/23 14:45:37 UTC

cvs commit: incubator-myfaces/conf/tiles web.xml

matzew      2004/12/23 05:45:37

  Modified:    conf/tiles web.xml
  Log:
  changed web.xml for tiles-example
  
  Revision  Changes    Path
  1.4       +44 -24    incubator-myfaces/conf/tiles/web.xml
  
  Index: web.xml
  ===================================================================
  RCS file: /home/cvs/incubator-myfaces/conf/tiles/web.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- web.xml	13 Oct 2004 10:54:27 -0000	1.3
  +++ web.xml	23 Dec 2004 13:45:36 -0000	1.4
  @@ -88,29 +88,41 @@
           <param-value>/WEB-INF/tiles.xml</param-value>
       </context-param>
   
  -    
   
  -    <!-- WelcomeFile Filter -->
  -    <!--
  -    <filter>
  -        <filter-name>WelcomeFile Filter</filter-name>
  -        <filter-class>org.apache.myfaces.webapp.filter.WelcomeFileFilter</filter-class>
  -        <description>
  -            Due to the manner in which the JSP / servlet lifecycle
  -            functions, it is not currently possible to specify default
  -            welcome files for a web application and map them to the
  -            MyFacesServlet.  Normally they will be mapped to the
  -            default servlet for the JSP container.  To offset this
  -            shortcoming, we utilize a servlet Filter which examines
  -            the URI of all incoming requests.
  -        </description>
  -    </filter>
  -    -->
   
  -    <!-- MultiPart Filter -->
  +    <!-- Extensions Filter -->
       <filter>
  -        <filter-name>multipartFilter</filter-name>
  -        <filter-class>org.apache.myfaces.custom.fileupload.MultipartFilter</filter-class>
  +        <filter-name>extensionsFilter</filter-name>
  +        <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
  +        <init-param>
  +            <param-name>uploadMaxFileSize</param-name>
  +            <param-value>100m</param-value>
  +            <description>Set the size limit for uploaded files.
  +                Format: 10 - 10 bytes
  +                        10k - 10 KB
  +                        10m - 10 MB
  +                        1g - 1 GB
  +            </description>
  +        </init-param>
  +        <init-param>
  +            <param-name>uploadThresholdSize</param-name>
  +            <param-value>100k</param-value>
  +            <description>Set the threshold size - files
  +                    below this limit are stored in memory, files above
  +                    this limit are stored on disk.
  +
  +                Format: 10 - 10 bytes
  +                        10k - 10 KB
  +                        10m - 10 MB
  +                        1g - 1 GB
  +            </description>
  +        </init-param>
  +<!--        <init-param>
  +            <param-name>uploadRepositoryPath</param-name>
  +            <param-value>/temp</param-value>
  +            <description>Set the path where the intermediary files will be stored.
  +            </description>
  +        </init-param>-->
       </filter>
   
   
  @@ -124,12 +136,20 @@
       </filter-mapping>
       -->
   
  -    <filter-mapping>
  -        <filter-name>multipartFilter</filter-name>
  -        <url-pattern>/*</url-pattern>
  -    </filter-mapping>
  +<!--    <filter-mapping>-->
  +<!--        <filter-name>javascriptDetector</filter-name>-->
  +<!--        <url-pattern>/_javascriptDetector_</url-pattern>-->
  +<!--    </filter-mapping>-->
   
   
  +    <filter-mapping>
  +        <filter-name>extensionsFilter</filter-name>
  +        <url-pattern>*.jsf</url-pattern>
  +    </filter-mapping>
  +    <filter-mapping>
  +        <filter-name>extensionsFilter</filter-name>
  +        <url-pattern>/faces/*</url-pattern>
  +    </filter-mapping>
   
       <!-- Listener, that does all the startup work (configuration, init). -->
       <listener>