Author: sergeyhalipov
Date: 2007-10-01 10:53:07 -0400 (Mon, 01 Oct 2007)
New Revision: 3180
Modified:
branches/3.1.x/ui/togglePanel/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java
Log:
http://jira.jboss.com/jira/browse/RF-1016
Modified:
branches/3.1.x/ui/togglePanel/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java
===================================================================
---
branches/3.1.x/ui/togglePanel/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java 2007-10-01
14:51:53 UTC (rev 3179)
+++
branches/3.1.x/ui/togglePanel/src/main/java/org/richfaces/renderkit/html/ToggleControlRenderer.java 2007-10-01
14:53:07 UTC (rev 3180)
@@ -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);
}
}