Author: sergeyhalipov
Date: 2007-10-01 10:35:51 -0400 (Mon, 01 Oct 2007)
New Revision: 3177
Modified:
trunk/ui/togglePanel/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java
Log:
http://jira.jboss.com/jira/browse/RF-1016
Modified:
trunk/ui/togglePanel/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java
===================================================================
---
trunk/ui/togglePanel/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java 2007-10-01
14:28:41 UTC (rev 3176)
+++
trunk/ui/togglePanel/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java 2007-10-01
14:35:51 UTC (rev 3177)
@@ -32,6 +32,7 @@
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
+import org.ajax4jsf.event.AjaxEvent;
import org.ajax4jsf.renderkit.AjaxRendererUtils;
import org.ajax4jsf.renderkit.HeaderResourcesRendererBase;
import org.ajax4jsf.renderkit.RendererUtils;
@@ -87,11 +88,11 @@
// }
// event.queue();
- //TODO by nick - nick - why check here?
- if(!UITogglePanel.AJAX_METHOD.equals(panel.getSwitchType())) {
- ActionEvent actionEvent = new ActionEvent(component);
- component.queueEvent(actionEvent);
+ if(UITogglePanel.AJAX_METHOD.equals(panel.getSwitchType())) {
+ new AjaxEvent(component).queue();
}
+ ActionEvent actionEvent = new ActionEvent(component);
+ component.queueEvent(actionEvent);
}
}