Author: tkuprevich
Date: 2009-04-06 08:15:57 -0400 (Mon, 06 Apr 2009)
New Revision: 13388
Modified:
trunk/test-applications/facelets/src/main/java/colorPicker/ColorPickerConverter.java
trunk/test-applications/facelets/src/main/webapp/ColorPicker/ColorPicker.xhtml
Log:
Modified:
trunk/test-applications/facelets/src/main/java/colorPicker/ColorPickerConverter.java
===================================================================
---
trunk/test-applications/facelets/src/main/java/colorPicker/ColorPickerConverter.java 2009-04-06
12:15:38 UTC (rev 13387)
+++
trunk/test-applications/facelets/src/main/java/colorPicker/ColorPickerConverter.java 2009-04-06
12:15:57 UTC (rev 13388)
@@ -22,6 +22,10 @@
if (value instanceof String) {
String str = value.toString();
return str;
+ } else if (value == null) {
+ value = new String(" ");
+ String str = value.toString();
+ return str;
} else
throw new ConverterException(
"Test Application: Error in custom converted
colorPicker.ColorPickerConverter.java");
Modified: trunk/test-applications/facelets/src/main/webapp/ColorPicker/ColorPicker.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/ColorPicker/ColorPicker.xhtml 2009-04-06
12:15:38 UTC (rev 13387)
+++
trunk/test-applications/facelets/src/main/webapp/ColorPicker/ColorPicker.xhtml 2009-04-06
12:15:57 UTC (rev 13388)
@@ -2,7 +2,7 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:rich="http://richfaces.org/rich" id="calendarSubviewID">
+
xmlns:rich="http://richfaces.org/rich" id="calendarSubviewID" >
<rich:colorPicker binding="#{colorPicker.component}"
colorMode="#{colorPicker.colorMode}"
converter="colorPickerConverter"
converterMessage="#{colorPicker.converterMessage}"