[richfaces-svn-commits] JBoss Rich Faces SVN: r12347 - in trunk/sandbox/samples/colorPicker/src/main: webapp/pages and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue Jan 20 07:25:30 EST 2009


Author: artdaw
Date: 2009-01-20 07:25:30 -0500 (Tue, 20 Jan 2009)
New Revision: 12347

Modified:
   trunk/sandbox/samples/colorPicker/src/main/java/org/richfaces/sandbox/samples/Bean.java
   trunk/sandbox/samples/colorPicker/src/main/webapp/pages/index.jsp
Log:
colorPicker: sample was fixed

Modified: trunk/sandbox/samples/colorPicker/src/main/java/org/richfaces/sandbox/samples/Bean.java
===================================================================
--- trunk/sandbox/samples/colorPicker/src/main/java/org/richfaces/sandbox/samples/Bean.java	2009-01-20 12:24:53 UTC (rev 12346)
+++ trunk/sandbox/samples/colorPicker/src/main/java/org/richfaces/sandbox/samples/Bean.java	2009-01-20 12:25:30 UTC (rev 12347)
@@ -19,7 +19,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
  */
 
-package org.richfaces.sandbox.ui;
+package org.richfaces.sandbox.samples;
 /**
  * @author Gleb Galkin
  *
@@ -28,7 +28,7 @@
 
 public class Bean {
 
-    private String color = null;
+    private String color = "#cccccc";
 
     public Bean() {
 

Modified: trunk/sandbox/samples/colorPicker/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/sandbox/samples/colorPicker/src/main/webapp/pages/index.jsp	2009-01-20 12:24:53 UTC (rev 12346)
+++ trunk/sandbox/samples/colorPicker/src/main/webapp/pages/index.jsp	2009-01-20 12:25:30 UTC (rev 12347)
@@ -8,7 +8,7 @@
     <body>
         <f:view>
             <h:form>
-                <colorPicker:colorPicker value="#{bean.color}" flat="false" initColor="#cccccc" showEvent="onclick"/> 
+                <colorPicker:colorPicker value="#{bean.color}" flat="true" showEvent="onclick" colorMode="rgb"/> 
                 <h:commandButton value="Submit" />
             </h:form>
         </f:view>




More information about the richfaces-svn-commits mailing list