Author: nbelaevski
Date: 2010-12-15 19:49:47 -0500 (Wed, 15 Dec 2010)
New Revision: 20599
Modified:
trunk/examples/richfaces-showcase/pom.xml
trunk/examples/richfaces-showcase/src/main/webapp-gae/WEB-INF/appengine-web.xml
trunk/examples/richfaces-showcase/src/main/webapp-gae/WEB-INF/web.xml
trunk/examples/richfaces-showcase/src/main/webapp/WEB-INF/web.xml
Log:
Added maven-gae-plugin configuration
Updated resource mappings
Switched state saving to client
Modified: trunk/examples/richfaces-showcase/pom.xml
===================================================================
--- trunk/examples/richfaces-showcase/pom.xml 2010-12-15 23:05:47 UTC (rev 20598)
+++ trunk/examples/richfaces-showcase/pom.xml 2010-12-16 00:49:47 UTC (rev 20599)
@@ -18,6 +18,7 @@
<name>Richfaces Examples: Richfaces Showcase Application</name>
<properties>
+ <gae.version>1.4.0</gae.version>
</properties>
<dependencies>
@@ -97,6 +98,25 @@
</webResources>
</configuration>
</plugin>
+ <plugin>
+ <groupId>net.kindleit</groupId>
+ <artifactId>maven-gae-plugin</artifactId>
+ <version>0.7.3</version>
+ <dependencies>
+ <dependency>
+ <groupId>net.kindleit</groupId>
+ <artifactId>gae-runtime</artifactId>
+ <version>${gae.version}</version>
+ <type>pom</type>
+ <exclusions>
+ <exclusion>
+ <groupId>com.google.appengine.orm</groupId>
+ <artifactId>jdo2-api</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ </dependencies>
+ </plugin>
</plugins>
</build>
@@ -223,16 +243,16 @@
</includedContentTypes>
<fileNameMappings>
<property>
-
<name>^\Qorg.richfaces.renderkit.html\E</name>
-
<value>org.richfaces/images</value>
+
<name>^.*showcase.*/([^/]+\.css)$</name>
+
<value>org.richfaces.showcase.css/$1</value>
</property>
<property>
-
<name>^\Qorg.richfaces.renderkit.html.images\E</name>
-
<value>org.richfaces/images</value>
+
<name>^.+/([^/]+\.(png|gif|jpg))$</name>
+
<value>org.richfaces.images/$1</value>
</property>
<property>
- <name>^css/</name>
-
<value>org.richfaces/css/</value>
+ <name>^.+/([^/]+\.css)$</name>
+
<value>org.richfaces.css/$1</value>
</property>
</fileNameMappings>
</configuration>
@@ -370,6 +390,30 @@
</dependency>
</dependencies>
</profile>
+ <profile>
+ <id>unpack-gae-sdk</id>
+ <activation>
+ <property>
+ <name>!gae.home</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>net.kindleit</groupId>
+ <artifactId>maven-gae-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
<scm>
Modified: trunk/examples/richfaces-showcase/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp/WEB-INF/web.xml 2010-12-15 23:05:47
UTC (rev 20598)
+++ trunk/examples/richfaces-showcase/src/main/webapp/WEB-INF/web.xml 2010-12-16 00:49:47
UTC (rev 20599)
@@ -25,7 +25,7 @@
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
- <param-value>server</param-value>
+ <param-value>client</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
Modified: trunk/examples/richfaces-showcase/src/main/webapp-gae/WEB-INF/appengine-web.xml
===================================================================
---
trunk/examples/richfaces-showcase/src/main/webapp-gae/WEB-INF/appengine-web.xml 2010-12-15
23:05:47 UTC (rev 20598)
+++
trunk/examples/richfaces-showcase/src/main/webapp-gae/WEB-INF/appengine-web.xml 2010-12-16
00:49:47 UTC (rev 20599)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app
xmlns="http://appengine.google.com/ns/1.0">
<application>richfaces-showcase</application>
- <version>11</version>
+ <version>21</version>
<sessions-enabled>true</sessions-enabled>
<system-properties>
Modified: trunk/examples/richfaces-showcase/src/main/webapp-gae/WEB-INF/web.xml
===================================================================
--- trunk/examples/richfaces-showcase/src/main/webapp-gae/WEB-INF/web.xml 2010-12-15
23:05:47 UTC (rev 20598)
+++ trunk/examples/richfaces-showcase/src/main/webapp-gae/WEB-INF/web.xml 2010-12-16
00:49:47 UTC (rev 20599)
@@ -42,7 +42,7 @@
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
- <param-value>server</param-value>
+ <param-value>client</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.staticResourceLocation</param-name>