Author: nbelaevski
Date: 2008-03-24 16:35:35 -0400 (Mon, 24 Mar 2008)
New Revision: 7154
Modified:
trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java
trunk/ui/menu-components/src/main/templates/org/richfaces/htmlMenuItem.jspx
Log:
http://jira.jboss.com/jira/browse/RF-2716
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 2008-03-24
20:31:43 UTC (rev 7153)
+++
trunk/ui/menu-components/src/main/java/org/richfaces/renderkit/html/MenuItemRendererBase.java 2008-03-24
20:35:35 UTC (rev 7154)
@@ -27,7 +27,6 @@
import java.util.List;
import java.util.Map;
-import javax.faces.FacesException;
import javax.faces.component.UIComponent;
import javax.faces.component.UIParameter;
import javax.faces.context.ExternalContext;
@@ -78,7 +77,7 @@
// enqueue event here for this component or for component with Id
// taken from forId attribute
- String mode = menuItem.getSubmitMode();
+ String mode = resolveSubmitMode(menuItem);
if (!MenuComponent.MODE_NONE.equalsIgnoreCase(mode)) {
ActionEvent actionEvent = new ActionEvent(menuItem);
Modified: trunk/ui/menu-components/src/main/templates/org/richfaces/htmlMenuItem.jspx
===================================================================
--- trunk/ui/menu-components/src/main/templates/org/richfaces/htmlMenuItem.jspx 2008-03-24
20:31:43 UTC (rev 7153)
+++ trunk/ui/menu-components/src/main/templates/org/richfaces/htmlMenuItem.jspx 2008-03-24
20:35:35 UTC (rev 7154)
@@ -21,7 +21,7 @@
<jsp:scriptlet>
<![CDATA[
- String mode =
((org.richfaces.component.UIMenuItem)component).getSubmitMode();
+ String mode = resolveSubmitMode(component);
if (mode != null && !mode.equalsIgnoreCase("none"))
org.richfaces.component.util.FormUtil.throwEnclFormReqExceptionIfNeed(context,component);
]]>
</jsp:scriptlet>