Author: sergeyhalipov
Date: 2008-04-08 12:17:21 -0400 (Tue, 08 Apr 2008)
New Revision: 7669
Modified:
trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java
Log:
State processing added to new calendar attributes.
Modified: trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java
===================================================================
--- trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java 2008-04-08
16:00:51 UTC (rev 7668)
+++ trunk/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java 2008-04-08
16:17:21 UTC (rev 7669)
@@ -688,5 +688,21 @@
this.minDaysInFirstWeek = minDaysInFirstWeek;
this.minDaysInFirstWeekSet = true;
}
+
+ public Object saveState(FacesContext context) {
+ Object[] state = new Object[3];
+ state[0] = super.saveState(context);
+ state[1] = new Integer(this.firstWeekDay);
+ state[2] = new Integer(this.minDaysInFirstWeek);
+
+ return state;
+ }
+ public void restoreState(FacesContext context, Object state) {
+ Object[] _state = (Object[]) state;
+ super.restoreState(context, _state[0]);
+ this.firstWeekDay = ((Integer)_state[1]).intValue();
+ this.minDaysInFirstWeek = ((Integer)_state[2]).intValue();
+ }
+
}
Show replies by date