Author: artdaw
Date: 2009-03-19 16:53:07 -0400 (Thu, 19 Mar 2009)
New Revision: 13043
Modified:
trunk/samples/colorPickerDemo/src/main/webapp/pages/index.jsp
Log:
colorPicker: bug with ajax rerender fixed
Modified: trunk/samples/colorPickerDemo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/colorPickerDemo/src/main/webapp/pages/index.jsp 2009-03-19 20:36:06 UTC
(rev 13042)
+++ trunk/samples/colorPickerDemo/src/main/webapp/pages/index.jsp 2009-03-19 20:53:07 UTC
(rev 13043)
@@ -1,29 +1,23 @@
+<%@ 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>
- <f:view>
- <h:form>
- <colorPicker:colorPicker value="#{bean.color}"
flat="false" colorMode="hex" disabled="false"/>
- <h:commandButton value="Submit" />
- <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>
+ <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>