Author: abelevich
Date: 2007-10-08 12:34:51 -0400 (Mon, 08 Oct 2007)
New Revision: 3296
Modified:
trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java
Log:
add queue AjaxEvent in the doDecode method (RF-1029)
Modified:
trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java
===================================================================
---
trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java 2007-10-08
15:17:03 UTC (rev 3295)
+++
trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java 2007-10-08
16:34:51 UTC (rev 3296)
@@ -35,6 +35,7 @@
import javax.faces.event.PhaseId;
import org.ajax4jsf.Messages;
+import org.ajax4jsf.event.AjaxEvent;
import org.ajax4jsf.javascript.ScriptUtils;
import org.ajax4jsf.renderkit.AjaxRendererUtils;
import org.ajax4jsf.renderkit.ComponentVariables;
@@ -75,8 +76,14 @@
if (!MenuComponent.MODE_NONE.equalsIgnoreCase(mode)) {
ActionEvent actionEvent = new ActionEvent(menuItem);
+
+ if(MenuComponent.MODE_AJAX.equalsIgnoreCase(mode)){
+ new AjaxEvent(menuItem).queue();
+ }
+
if (menuItem.isImmediate()) {
- actionEvent.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
+ actionEvent.setPhaseId(PhaseId.APPLY_REQUEST_VALUES);
+
} else {
actionEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
}
Show replies by date