Author: maksimkaszynski
Date: 2008-03-29 09:08:16 -0400 (Sat, 29 Mar 2008)
New Revision: 7403
Modified:
trunk/framework/api/src/main/java/org/richfaces/event/SimpleToggleEvent.java
Log:
http://jira.jboss.com/jira/browse/RF-682
Modified: trunk/framework/api/src/main/java/org/richfaces/event/SimpleToggleEvent.java
===================================================================
---
trunk/framework/api/src/main/java/org/richfaces/event/SimpleToggleEvent.java 2008-03-29
12:04:15 UTC (rev 7402)
+++
trunk/framework/api/src/main/java/org/richfaces/event/SimpleToggleEvent.java 2008-03-29
13:08:16 UTC (rev 7403)
@@ -49,14 +49,19 @@
* @see
javax.faces.event.FacesEvent#isAppropriateListener(javax.faces.event.FacesListener)
*/
public boolean isAppropriateListener(FacesListener listener) {
- return listener instanceof ISimpleToggleListener;
+ return listener instanceof ISimpleToggleListener ||
super.isAppropriateListener(listener);
}
/* (non-Javadoc)
* @see
javax.faces.event.FacesEvent#processListener(javax.faces.event.FacesListener)
*/
public void processListener(FacesListener listener) {
- ((ISimpleToggleListener) listener).processToggle(this);
+ if (listener instanceof ISimpleToggleListener) {
+ ((ISimpleToggleListener) listener).processToggle(this);
+ } else {
+ super.processListener(listener);
+ }
+
}
/**