Author: artdaw
Date: 2009-03-19 18:39:50 -0400 (Thu, 19 Mar 2009)
New Revision: 13044
Modified:
trunk/samples/colorPickerDemo/src/main/webapp/pages/index.jsp
Log:
colorPicker sample was fixed
Modified: trunk/samples/colorPickerDemo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/colorPickerDemo/src/main/webapp/pages/index.jsp 2009-03-19 20:53:07 UTC
(rev 13043)
+++ trunk/samples/colorPickerDemo/src/main/webapp/pages/index.jsp 2009-03-19 22:39:50 UTC
(rev 13044)
@@ -1,24 +1,33 @@
<%@ page contentType="application/xhtml+xml; charset=ISO-8859-1" %>
-<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h"%>
-<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f"%>
-<%@ taglib
uri="http://labs.jboss.com/jbossrichfaces/ui/colorPicker"
prefix="colorPicker"%>
-<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j"%>
-<html>
- <head>
- <title>ColorPicker sample page</title>
- </head>
- <body>
+<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib
uri="http://labs.jboss.com/jbossrichfaces/ui/colorPicker"
prefix="colorPicker"%>
+<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j"%>
+<html>
+ <head>
+ <title>ColorPicker sample page</title>
+ </head>
+ <body>
<f:view>
- <a4j:log popup="false" level="ALL" style="width:
800px; height: 300px;"></a4j:log>
<h:form>
-
-
-
- <colorPicker:colorPicker id="cp"></colorPicker:colorPicker>
- <a4j:commandButton value="submit"
reRender="cp"></a4j:commandButton>
-
- </h:form>
- </f:view>
- </body>
-</html>
+ <colorPicker:colorPicker id="cp"></colorPicker:colorPicker>
+ <a4j:commandButton value="submit"
reRender="cp"></a4j:commandButton>
+ <br /><br /><br /><br /><br /><br
/><br /><br /><br />
+ <br /><br /><br /><br /><br />
+ <colorPicker:colorPicker value="#{bean.color2}"
flat="true" colorMode="rgb">
+ <f:facet name="icon">
+ <f:verbatim>
+ <h:graphicImage value="/pages/colorPicker_ico.png"
width="18px" height="18px"/>
+ </f:verbatim>
+ </f:facet>
+ <f:facet name="arrows">
+ <f:verbatim>
+ <div style="width: 30px; height: 5px; border: 1px solid gray;
background:none;"></div>
+ </f:verbatim>
+ </f:facet>
+ </colorPicker:colorPicker>
+ </h:form>
+ </f:view>
+ </body>
+</html>