Author: Alex.Kolonitsky
Date: 2009-08-24 13:02:17 -0400 (Mon, 24 Aug 2009)
New Revision: 15284
Modified:
tags/3.3.2.CR1/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
Log:
RF-7666 fix
Modified:
tags/3.3.2.CR1/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
===================================================================
---
tags/3.3.2.CR1/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2009-08-24
16:48:06 UTC (rev 15283)
+++
tags/3.3.2.CR1/ui/calendar/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2009-08-24
17:02:17 UTC (rev 15284)
@@ -361,23 +361,23 @@
}
- public JSFunction getIsDayEnabled(FacesContext context, UIComponent component) {
+ public JSReference getIsDayEnabled(FacesContext context, UIComponent component) {
UICalendar calendar = (UICalendar) component;
String isDayEnabled = (String) calendar.getAttributes().get(
"isDayEnabled");
if (isDayEnabled != null && isDayEnabled.length() != 0) {
- return new JSFunction(isDayEnabled);
+ return new JSReference(isDayEnabled); //new JSFunction(isDayEnabled);
}
return null;
}
- public JSFunction getDayStyleClass(FacesContext context, UIComponent component) {
+ public JSReference getDayStyleClass(FacesContext context, UIComponent component) {
UICalendar calendar = (UICalendar) component;
String dayStyleClass = (String) calendar.getAttributes().get(
"dayStyleClass");
if (dayStyleClass != null && dayStyleClass.length() != 0) {
- return new JSFunction(dayStyleClass);
+ return new JSReference(dayStyleClass);
}
return null;
Show replies by date