You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by pm...@apache.org on 2007/07/25 18:16:59 UTC
svn commit: r559510 -
/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/UISchedule.java
Author: pmahoney
Date: Wed Jul 25 09:16:58 2007
New Revision: 559510
URL: http://svn.apache.org/viewvc?view=rev&rev=559510
Log:
TOMAHAWK-971: Remove the ScheduleActionListener before the state is restored, as the RI will not clear the listener registered in the constructor in super.restoreState().
Modified:
myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/UISchedule.java
Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/UISchedule.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/UISchedule.java?view=diff&rev=559510&r1=559509&r2=559510
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/UISchedule.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/schedule/UISchedule.java Wed Jul 25 09:16:58 2007
@@ -235,6 +235,8 @@
*/
public void restoreState(FacesContext context, Object state)
{
+ removeActionListener(_scheduleListener);
+
Object[] values = (Object[]) state;
super.restoreState(context, values[0]);
_lastClickedDateAndTime = (Date) values[1];