Author: alexsmirnov
Date: 2009-03-05 20:12:50 -0500 (Thu, 05 Mar 2009)
New Revision: 12852
Added:
trunk/sandbox/ui/layout/src/main/java/org/richfaces/renderkit/html/images/
trunk/sandbox/ui/layout/src/main/java/org/richfaces/renderkit/html/images/PageBackgroundGradient.java
trunk/sandbox/ui/layout/src/main/java/org/richfaces/renderkit/html/images/PageContentGradient.java
Modified:
trunk/samples/pom.xml
trunk/sandbox/samples/layout-sample/pom.xml
trunk/sandbox/samples/layout-sample/src/main/webapp/WEB-INF/faces-config.xml
trunk/sandbox/samples/layout-sample/src/main/webapp/WEB-INF/web.xml
trunk/sandbox/samples/layout-sample/src/main/webapp/pages/index.xhtml
trunk/sandbox/ui/layout/src/main/resources/org/richfaces/renderkit/html/css/simple.xcss
Log:
generated gradient added to a 'simple' page theme
Modified: trunk/samples/pom.xml
===================================================================
--- trunk/samples/pom.xml 2009-03-06 00:33:46 UTC (rev 12851)
+++ trunk/samples/pom.xml 2009-03-06 01:12:50 UTC (rev 12852)
@@ -27,7 +27,7 @@
<scanIntervalSeconds>10</scanIntervalSeconds>
<connectors>
<connector
implementation="org.mortbay.jetty.nio.SelectChannelConnector">
- <port>80</port>
+ <port>8080</port>
<maxIdleTime>60000</maxIdleTime>
</connector>
</connectors>
Modified: trunk/sandbox/samples/layout-sample/pom.xml
===================================================================
--- trunk/sandbox/samples/layout-sample/pom.xml 2009-03-06 00:33:46 UTC (rev 12851)
+++ trunk/sandbox/samples/layout-sample/pom.xml 2009-03-06 01:12:50 UTC (rev 12852)
@@ -1,43 +1,49 @@
-<?xml version="1.0"?><project>
- <parent>
- <artifactId>samples</artifactId>
- <groupId>org.richfaces</groupId>
- <version>3.3.1-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.richfaces.samples</groupId>
- <artifactId>layout-sample</artifactId>
- <packaging>war</packaging>
- <name>layout Maven Webapp</name>
- <version>3.3.1-SNAPSHOT</version>
- <build>
- <finalName>layout-sample</finalName>
- <plugins>
- <plugin>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>1.5</source>
- <target>1.5</target>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.richfaces.framework</groupId>
- <artifactId>richfaces-impl</artifactId>
- <version>3.3.1-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.richfaces.ui</groupId>
- <artifactId>layout</artifactId>
- <version>3.3.1-SNAPSHOT</version>
- </dependency>
- </dependencies>
-</project>
+<?xml version="1.0"?>
+<project>
+ <parent>
+ <artifactId>samples</artifactId>
+ <groupId>org.richfaces</groupId>
+ <version>3.3.1-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.samples</groupId>
+ <artifactId>layout-sample</artifactId>
+ <packaging>war</packaging>
+ <name>layout Maven Webapp</name>
+ <version>3.3.1-SNAPSHOT</version>
+ <build>
+ <finalName>layout-sample</finalName>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-impl</artifactId>
+ <version>3.3.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>layout</artifactId>
+ <version>3.3.1-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>org.richfaces.samples</groupId>
+ <artifactId>skins</artifactId>
+ <version>3.3.1-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Modified: trunk/sandbox/samples/layout-sample/src/main/webapp/WEB-INF/faces-config.xml
===================================================================
---
trunk/sandbox/samples/layout-sample/src/main/webapp/WEB-INF/faces-config.xml 2009-03-06
00:33:46 UTC (rev 12851)
+++
trunk/sandbox/samples/layout-sample/src/main/webapp/WEB-INF/faces-config.xml 2009-03-06
01:12:50 UTC (rev 12852)
@@ -11,4 +11,9 @@
<managed-bean-class>org.richfaces.samples.Bean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
+ <managed-bean>
+ <managed-bean-name>skinBean</managed-bean-name>
+ <managed-bean-class>org.richfaces.SkinBean</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ </managed-bean>
</faces-config>
Modified: trunk/sandbox/samples/layout-sample/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/sandbox/samples/layout-sample/src/main/webapp/WEB-INF/web.xml 2009-03-06
00:33:46 UTC (rev 12851)
+++ trunk/sandbox/samples/layout-sample/src/main/webapp/WEB-INF/web.xml 2009-03-06
01:12:50 UTC (rev 12852)
@@ -17,7 +17,7 @@
<context-param>
<param-name>org.richfaces.SKIN</param-name>
- <param-value>blueSky</param-value>
+ <param-value>#{skinBean.skin}</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
Modified: trunk/sandbox/samples/layout-sample/src/main/webapp/pages/index.xhtml
===================================================================
(Binary files differ)
Added:
trunk/sandbox/ui/layout/src/main/java/org/richfaces/renderkit/html/images/PageBackgroundGradient.java
===================================================================
---
trunk/sandbox/ui/layout/src/main/java/org/richfaces/renderkit/html/images/PageBackgroundGradient.java
(rev 0)
+++
trunk/sandbox/ui/layout/src/main/java/org/richfaces/renderkit/html/images/PageBackgroundGradient.java 2009-03-06
01:12:50 UTC (rev 12852)
@@ -0,0 +1,17 @@
+/**
+ *
+ */
+package org.richfaces.renderkit.html.images;
+
+import org.richfaces.renderkit.html.BaseGradient;
+
+/**
+ * @author asmirnov
+ *
+ */
+public class PageBackgroundGradient extends BaseGradient {
+
+ public PageBackgroundGradient() {
+ super(1, 250, 130, false);
+ }
+}
Property changes on:
trunk/sandbox/ui/layout/src/main/java/org/richfaces/renderkit/html/images/PageBackgroundGradient.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added:
trunk/sandbox/ui/layout/src/main/java/org/richfaces/renderkit/html/images/PageContentGradient.java
===================================================================
---
trunk/sandbox/ui/layout/src/main/java/org/richfaces/renderkit/html/images/PageContentGradient.java
(rev 0)
+++
trunk/sandbox/ui/layout/src/main/java/org/richfaces/renderkit/html/images/PageContentGradient.java 2009-03-06
01:12:50 UTC (rev 12852)
@@ -0,0 +1,17 @@
+/**
+ *
+ */
+package org.richfaces.renderkit.html.images;
+
+import org.richfaces.renderkit.html.BaseGradient;
+
+/**
+ * @author asmirnov
+ *
+ */
+public class PageContentGradient extends BaseGradient {
+
+ public PageContentGradient() {
+ super(1, 250, 130, false);
+ }
+}
Property changes on:
trunk/sandbox/ui/layout/src/main/java/org/richfaces/renderkit/html/images/PageContentGradient.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified:
trunk/sandbox/ui/layout/src/main/resources/org/richfaces/renderkit/html/css/simple.xcss
===================================================================
---
trunk/sandbox/ui/layout/src/main/resources/org/richfaces/renderkit/html/css/simple.xcss 2009-03-06
00:33:46 UTC (rev 12851)
+++
trunk/sandbox/ui/layout/src/main/resources/org/richfaces/renderkit/html/css/simple.xcss 2009-03-06
01:12:50 UTC (rev 12852)
@@ -7,6 +7,11 @@
<u:selector name="body">
<u:style name="font-family" skin="generalFamilyFont" />
<u:style name="margin" value="0" />
+ <u:style name="background-image">
+ <f:resource
f:key="org.richfaces.renderkit.html.images.PageBackgroundGradient"/>
+ </u:style>
+ <u:style name="background-color" value="#FFFFFF"/>
+ <u:style name="background-repeat" value="repeat-x"/>
</u:selector>
<u:selector name=".rich-page">
@@ -27,7 +32,7 @@
<u:selector name=".rich-page-content">
<u:style name="background-image">
- <f:resource
f:key="/org/richfaces/renderkit/html/images/tempGradient.jpg"/>
+ <f:resource
f:key="org.richfaces.renderkit.html.images.PageContentGradient"/>
</u:style>
<u:style name="min-height" value="200px" />
<u:style name="background-color" value="#FFFFFF"/>
@@ -37,9 +42,9 @@
<u:selector name=".rich-page-main">
</u:selector>
- <u:selector name=".rich-page-body">
+ <!--u:selector name=".rich-page-body">
<u:style name="padding" value="0 30px 0 30px" />
- </u:selector>
+ </u:selector-->
<u:selector name=".rich-page-footer">
<u:style name="text-align" value="center" />
Show replies by date