Author: nbelaevski
Date: 2007-08-31 13:29:52 -0400 (Fri, 31 Aug 2007)
New Revision: 2675
Modified:
trunk/ui/tree/src/main/java/org/richfaces/component/events/TreeEvents.java
Log:
Failed unit test fixed
Modified: trunk/ui/tree/src/main/java/org/richfaces/component/events/TreeEvents.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/component/events/TreeEvents.java 2007-08-31
17:27:46 UTC (rev 2674)
+++ trunk/ui/tree/src/main/java/org/richfaces/component/events/TreeEvents.java 2007-08-31
17:29:52 UTC (rev 2675)
@@ -57,11 +57,13 @@
if (event instanceof AjaxExpandedEvent) {
new AjaxEvent(event.getComponent()).queue();
}
+ } else if (event instanceof AjaxSelectedEvent) {
+ if (eventsProducer.hasAjaxSubmitSelection()) {
+ binding = eventsProducer.getNodeSelectListener();
+ new AjaxEvent(event.getComponent()).queue();
+ }
} else if (event instanceof NodeSelectedEvent) {
binding = eventsProducer.getNodeSelectListener();
- if (event instanceof AjaxSelectedEvent &&
eventsProducer.hasAjaxSubmitSelection()) {
- new AjaxEvent(event.getComponent()).queue();
- }
} else if (event instanceof DropEvent) {
binding = eventsProducer.getDropListener();
} else if (event instanceof DragEvent) {