Author: amarkhel
Date: 2010-12-22 11:21:09 -0500 (Wed, 22 Dec 2010)
New Revision: 20748
Modified:
trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
Log:
RF-9646 Calendar: rendered wrong when firstWeekDay is not valid
Modified:
trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java
===================================================================
---
trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2010-12-22
16:02:27 UTC (rev 20747)
+++
trunk/ui/input/ui/src/main/java/org/richfaces/renderkit/CalendarRendererBase.java 2010-12-22
16:21:09 UTC (rev 20748)
@@ -492,10 +492,9 @@
if (0 <= day && day <= 6) {
RenderKitUtils.addToScriptHash(map, FIRST_DAY_WEEK, day);
- } else if (day != Integer.MIN_VALUE) {
- facesContext.getExternalContext().log(
- day + " value of firstWeekDay attribute is not a legal one for
component: "
- + MessageUtil.getLabel(facesContext, calendarComponent) + ".
Default value was applied.");
+ } else {
+ throw new IllegalArgumentException(day + " value of firstWeekDay
attribute is not a legal one for component: "
+ + MessageUtil.getLabel(facesContext, calendarComponent));
}
return map;
}
Show replies by date