Author: abelevich
Date: 2008-07-18 02:08:00 -0400 (Fri, 18 Jul 2008)
New Revision: 9668
Modified:
trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
Log:
fix input renderer
Modified:
trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
===================================================================
---
trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2008-07-17
17:03:29 UTC (rev 9667)
+++
trunk/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2008-07-18
06:08:00 UTC (rev 9668)
@@ -490,16 +490,16 @@
// Fix for myFaces 1.1.x RF-997
String returnValue = null;
- Date value = null;
- String submittedValue = (String)calendar.getSubmittedValue();
+ Object value = calendar.getSubmittedValue();
- if (submittedValue != null) {
+ if (value != null) {
try {
- value = calendar.getAsDate(submittedValue);
+ value = calendar.getAsDate(value);
} catch (Exception e) {
if (log.isDebugEnabled()) {
log.debug(" InputValue: " + e.toString(), e);
}
+ value=null;
returnValue = (String)calendar.getSubmittedValue();
}
} else {
Show replies by date