Author: mvitenkov
Date: 2009-07-16 08:45:47 -0400 (Thu, 16 Jul 2009)
New Revision: 14938
Modified:
branches/community/3.3.X/test-applications/jsp/pom.xml
branches/community/3.3.X/test-applications/jsp/src/main/webapp/WEB-INF/web.xml
Log:
jsp supports jsf and myfaces now.
Modified: branches/community/3.3.X/test-applications/jsp/pom.xml
===================================================================
--- branches/community/3.3.X/test-applications/jsp/pom.xml 2009-07-16 12:28:21 UTC (rev
14937)
+++ branches/community/3.3.X/test-applications/jsp/pom.xml 2009-07-16 12:45:47 UTC (rev
14938)
@@ -15,16 +15,19 @@
</build>
<dependencies>
<dependency>
- <groupId>org.apache.myfaces.tomahawk</groupId>
- <artifactId>tomahawk</artifactId>
- <version>1.1.7</version>
- <scope>runtime</scope>
- <exclusions>
- <exclusion>
- <groupId>javax.servlet</groupId>
- <artifactId>jstl</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
+ <groupId>apache-fileupload</groupId>
+ <artifactId>commons-fileupload</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>apache-fileupload</groupId>
+ <artifactId>commons-fileupload</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>myfaces</groupId>
+ <artifactId>myfaces-extensions</artifactId>
+ <version>1.0.9</version>
+ </dependency>
</dependencies>
</project>
\ No newline at end of file
Modified: branches/community/3.3.X/test-applications/jsp/src/main/webapp/WEB-INF/web.xml
===================================================================
---
branches/community/3.3.X/test-applications/jsp/src/main/webapp/WEB-INF/web.xml 2009-07-16
12:28:21 UTC (rev 14937)
+++
branches/community/3.3.X/test-applications/jsp/src/main/webapp/WEB-INF/web.xml 2009-07-16
12:45:47 UTC (rev 14938)
@@ -29,154 +29,154 @@
<param-value>true</param-value>
</context-param>
- <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.
+ 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
+ org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION
</param-name>
<param-value>20</param-value>
- </context-param>
-
- <context-param>
+ </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.
+ 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
+ org.apache.myfaces.SERIALIZE_STATE_IN_SESSION
</param-name>
<param-value>true</param-value>
- </context-param>
-
- <context-param>
+ </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.
+ 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
+ org.apache.myfaces.COMPRESS_STATE_IN_SESSION
</param-name>
<param-value>true</param-value>
- </context-param>
-
- <context-param>
+ </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"
+ 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>
+ </context-param>
+
+ <context-param>
<param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
<param-value>false</param-value>
- </context-param>
-
- <context-param>
+ </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"
+ 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>
+ </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"
+ 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>
+ </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.
+ 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>
+ </context-param>
+
+ <context-param>
<description>
- Validate managed beans, navigation rules and ensure that
- forms are not nested.
+ 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>
-
- <context-param>
+ </context-param>
+
+ <context-param>
<description>
- Treat readonly same as if disabled attribute was set for
- select elements.
+ Treat readonly same as if disabled attribute was set for
+ select elements.
</description>
<param-name>
- org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS
+ org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS
</param-name>
<param-value>true</param-value>
- </context-param>
-
- <context-param>
+ </context-param>
+
+ <context-param>
<description>
- Use the defined class as the class which will be called when
- a resource is added to the ExtensionFilter handling. Using
- StreamingAddResource here helps with performance. If you
- want to add custom components and want to use the
- ExtensionFilter, you need to provide your custom
- implementation here.
+ Use the defined class as the class which will be called when
+ a resource is added to the ExtensionFilter handling. Using
+ StreamingAddResource here helps with performance. If you
+ want to add custom components and want to use the
+ ExtensionFilter, you need to provide your custom
+ implementation here.
</description>
<param-name>org.apache.myfaces.ADD_RESOURCE_CLASS</param-name>
<param-value>
- org.apache.myfaces.renderkit.html.util.DefaultAddResource
+ org.apache.myfaces.renderkit.html.util.DefaultAddResource
</param-value>
- </context-param>
-
- <context-param>
+ </context-param>
+
+ <context-param>
<description>
- Virtual path in the URL which triggers loading of resources
- for the MyFaces extended components in the ExtensionFilter.
+ Virtual path in the URL which triggers loading of resources
+ for the MyFaces extended components in the ExtensionFilter.
</description>
<param-name>
- org.apache.myfaces.RESOURCE_VIRTUAL_PATH
+ org.apache.myfaces.RESOURCE_VIRTUAL_PATH
</param-name>
<param-value>/faces/myFacesExtensionResource</param-value>
- </context-param>
-
- <context-param>
+ </context-param>
+
+ <context-param>
<description>
- Check if the extensions-filter has been properly configured.
+ Check if the extensions-filter has been properly configured.
</description>
<param-name>
- org.apache.myfaces.CHECK_EXTENSIONS_FILTER
+ org.apache.myfaces.CHECK_EXTENSIONS_FILTER
</param-name>
<param-value>false</param-value>
- </context-param>
+ </context-param!-->
<context-param>
<param-name>org.richfaces.LoadScriptStrategy</param-name>
@@ -233,7 +233,7 @@
<filter>
<filter-name>extensionsFilter</filter-name>
<filter-class>
- org.apache.myfaces.webapp.filter.ExtensionsFilter
+ org.apache.myfaces.component.html.util.ExtensionsFilter
</filter-class>
<init-param>
<description>
@@ -247,13 +247,20 @@
<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
+ disk. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g -
+ 1 GB
</description>
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
</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>
<filter-mapping>
@@ -267,19 +274,23 @@
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
- <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.faces</url-pattern>
</filter-mapping>
+ <filter-mapping>
+ <filter-name>extensionsFilter</filter-name>
+ <url-pattern>/faces/*</url-pattern>
+ </filter-mapping>
<session-config>
<session-timeout>500</session-timeout>
</session-config>
<!-- Listener, to allow Jetty serving MyFaces apps -->
- <listener>
+ <!--listener>
<listener-class>
- org.apache.myfaces.webapp.StartupServletContextListener
+ org.apache.myfaces.webapp.StartupServletContextListener
</listener-class>
- </listener>
+ </listener-->
<!-- Faces Servlet -->
<servlet>