[richfaces-svn-commits] JBoss Rich Faces SVN: r2296 - trunk/ui/menu-components/src/main/templates/org/richfaces.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Thu Aug 16 11:05:47 EDT 2007


Author: a.izobov
Date: 2007-08-16 11:05:46 -0400 (Thu, 16 Aug 2007)
New Revision: 2296

Modified:
   trunk/ui/menu-components/src/main/templates/org/richfaces/htmlMenuItem.jspx
Log:
http://jira.jboss.com/jira/browse/RF-607

Modified: trunk/ui/menu-components/src/main/templates/org/richfaces/htmlMenuItem.jspx
===================================================================
--- trunk/ui/menu-components/src/main/templates/org/richfaces/htmlMenuItem.jspx	2007-08-16 14:58:45 UTC (rev 2295)
+++ trunk/ui/menu-components/src/main/templates/org/richfaces/htmlMenuItem.jspx	2007-08-16 15:05:46 UTC (rev 2296)
@@ -18,6 +18,13 @@
 			/org/ajax4jsf/javascript/scripts/form.js,
 			/org/richfaces/renderkit/html/scripts/form.js
 	</h:scripts>
+
+    <jsp:scriptlet>
+		<![CDATA[
+		         String mode = ((org.richfaces.component.UIMenuItem)component).getSubmitMode();
+		         if (mode != null && !mode.equalsIgnoreCase("none")) org.richfaces.component.util.FormUtil.throwEnclFormReqExceptionIfNeed(context,component);
+		]]>		                                               
+    </jsp:scriptlet>	
 	
 	<f:call name="initializeResources" />
 	




More information about the richfaces-svn-commits mailing list