[richfaces-svn-commits] JBoss Rich Faces SVN: r14351 - in branches/community/3.3.X/ui/layout/src/main: templates/org/richfaces and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Tue May 26 12:00:49 EDT 2009


Author: Alex.Kolonitsky
Date: 2009-05-26 12:00:49 -0400 (Tue, 26 May 2009)
New Revision: 14351

Modified:
   branches/community/3.3.X/ui/layout/src/main/config/component/page.xml
   branches/community/3.3.X/ui/layout/src/main/templates/org/richfaces/htmlPage.jspx
Log:
rich:page don' permit the body tag oncontextmenu
https://jira.jboss.org/jira/browse/RF-7252


Modified: branches/community/3.3.X/ui/layout/src/main/config/component/page.xml
===================================================================
--- branches/community/3.3.X/ui/layout/src/main/config/component/page.xml	2009-05-26 15:28:00 UTC (rev 14350)
+++ branches/community/3.3.X/ui/layout/src/main/config/component/page.xml	2009-05-26 16:00:49 UTC (rev 14351)
@@ -43,6 +43,12 @@
 		</taghandler>
 		&ui_component_attributes;
 		&html_universal_attributes;
+
+        <property>
+            <name>oncontextmenu</name>
+            <classname>java.lang.String</classname>
+            <description>HTML: a script expression</description>
+        </property>
 		<property>
 			<name>pageTitle</name>
 			<classname>java.lang.String</classname>

Modified: branches/community/3.3.X/ui/layout/src/main/templates/org/richfaces/htmlPage.jspx
===================================================================
--- branches/community/3.3.X/ui/layout/src/main/templates/org/richfaces/htmlPage.jspx	2009-05-26 15:28:00 UTC (rev 14350)
+++ branches/community/3.3.X/ui/layout/src/main/templates/org/richfaces/htmlPage.jspx	2009-05-26 16:00:49 UTC (rev 14351)
@@ -23,7 +23,8 @@
 		   <f:call name="pageStyle"/>
 		   <u:insertFacet name="pageHeader"/>
 		</head>
-		<body x:passThruWithExclusions="value,name,type,id">
+		<body x:passThruWithExclusions="value,name,type,id"
+              oncontextmenu='#{component.attributes["oncontextmenu"]}'>
 		  <div id="#{clientId}" class="rich-page #{component.attributes['pageClass']}"
 		   x:style="#{component.attributes['pageStyle']}">
 		   <c:if test="#{this:hasFacet(component,'header')}">




More information about the richfaces-svn-commits mailing list