Author: nbelaevski
Date: 2010-07-28 19:02:49 -0400 (Wed, 28 Jul 2010)
New Revision: 18269
Modified:
root/examples-sandbox/trunk/richfaces-showcase-gae/pom.xml
root/examples-sandbox/trunk/richfaces-showcase-gae/src/main/webapp/WEB-INF/appengine-web.xml
root/examples-sandbox/trunk/richfaces-showcase-gae/src/main/webapp/WEB-INF/web.xml
Log:
Added missing dependencies
Enabled sessions
Copied web.xml from richfaces-showcase
Modified: root/examples-sandbox/trunk/richfaces-showcase-gae/pom.xml
===================================================================
--- root/examples-sandbox/trunk/richfaces-showcase-gae/pom.xml 2010-07-28 23:01:27 UTC
(rev 18268)
+++ root/examples-sandbox/trunk/richfaces-showcase-gae/pom.xml 2010-07-28 23:02:49 UTC
(rev 18269)
@@ -141,6 +141,18 @@
<version>4.0.0-SNAPSHOT</version>
<type>war</type>
</dependency>
+ <dependency>
+ <groupId>xalan</groupId>
+ <artifactId>xalan</artifactId>
+ <version>2.7.1</version>
+ <type>jar</type>
+ </dependency>
+ <dependency>
+ <groupId>xerces</groupId>
+ <artifactId>xercesImpl</artifactId>
+ <version>2.9.1</version>
+ <type>jar</type>
+ </dependency>
</dependencies>
<!-- Build Settings -->
Modified:
root/examples-sandbox/trunk/richfaces-showcase-gae/src/main/webapp/WEB-INF/appengine-web.xml
===================================================================
---
root/examples-sandbox/trunk/richfaces-showcase-gae/src/main/webapp/WEB-INF/appengine-web.xml 2010-07-28
23:01:27 UTC (rev 18268)
+++
root/examples-sandbox/trunk/richfaces-showcase-gae/src/main/webapp/WEB-INF/appengine-web.xml 2010-07-28
23:02:49 UTC (rev 18269)
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app
xmlns="http://appengine.google.com/ns/1.0">
<application>richfaces-showcase-gae</application>
- <version>3</version>
+ <version>4</version>
+ <sessions-enabled>true</sessions-enabled>
<system-properties>
<property name="java.util.logging.config.file"
value="WEB-INF/classes/logging.properties"/>
Modified:
root/examples-sandbox/trunk/richfaces-showcase-gae/src/main/webapp/WEB-INF/web.xml
===================================================================
---
root/examples-sandbox/trunk/richfaces-showcase-gae/src/main/webapp/WEB-INF/web.xml 2010-07-28
23:01:27 UTC (rev 18268)
+++
root/examples-sandbox/trunk/richfaces-showcase-gae/src/main/webapp/WEB-INF/web.xml 2010-07-28
23:02:49 UTC (rev 18269)
@@ -1,12 +1,73 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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">
-
- <welcome-file-list>
- <welcome-file>index.jsp</welcome-file>
- <welcome-file>index.html</welcome-file>
- </welcome-file-list>
-
-</web-app>
+<?xml version="1.0" encoding="utf-8"?>
+<web-app version="2.5"
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">
+
+ <context-param>
+ <param-name>org.richfaces.enableControlSkinning</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.richfaces.enableControlSkinningClasses</param-name>
+ <param-value>false</param-value>
+ </context-param>
+ <context-param>
+ <param-name>org.richfaces.skin</param-name>
+ <param-value>#{skinBean.skin}</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.PROJECT_STAGE</param-name>
+ <param-value>Development</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>server</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+ <context-param>
+ <description>
+ Set this flag to true if you want the JavaServer Faces
+ Reference Implementation to validate the XML in your
+ faces-config.xml resources against the DTD. Default
+ value is false.
+ </description>
+ <param-name>com.sun.faces.validateXml</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <!-- ***** Accommodate Single-Threaded Requirement of Google AppEngine -->
+ <context-param>
+ <description>
+ When enabled, the runtime initialization and default ResourceHandler
+ implementation will use threads to perform their functions. Set this
+ value to false if threads aren't desired (as in the case of running
+ within the Google Application Engine).
+
+ Note that when this option is disabled, the ResourceHandler will not
+ pick up new versions of resources when ProjectStage is development.
+ </description>
+ <param-name>com.sun.faces.enableThreading</param-name>
+ <param-value>false</param-value>
+ </context-param>
+ <context-param>
+ <param-name>com.sun.faces.expressionFactory</param-name>
+ <param-value>org.jboss.el.ExpressionFactoryImpl</param-value>
+ </context-param>
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <welcome-file-list>
+ <welcome-file>index.jsp</welcome-file>
+ </welcome-file-list>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>