[richfaces-svn-commits] JBoss Rich Faces SVN: r11541 - in trunk/ui/hotKey/src/main: templates/org/richfaces and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Thu Dec 4 06:24:31 EST 2008


Author: alevkovsky
Date: 2008-12-04 06:24:31 -0500 (Thu, 04 Dec 2008)
New Revision: 11541

Modified:
   trunk/ui/hotKey/src/main/config/component/hotKey.xml
   trunk/ui/hotKey/src/main/templates/org/richfaces/htmlHotKey.jspx
Log:
https://jira.jboss.org/jira/browse/RF-4811

Modified: trunk/ui/hotKey/src/main/config/component/hotKey.xml
===================================================================
--- trunk/ui/hotKey/src/main/config/component/hotKey.xml	2008-12-04 10:37:18 UTC (rev 11540)
+++ trunk/ui/hotKey/src/main/config/component/hotKey.xml	2008-12-04 11:24:31 UTC (rev 11541)
@@ -89,7 +89,6 @@
 			<name>disableInInputTypes</name>
 			<classname>java.lang.String</classname>
 			<description>Defines the types of the inputs not to be influenced with hotKey component. Possible values: buttons, texts and all (default). By default it is empty and this means ALL the types.</description>
-			<defaultvalue>"all"</defaultvalue>
 		</property>
 	</component>
 </components>

Modified: trunk/ui/hotKey/src/main/templates/org/richfaces/htmlHotKey.jspx
===================================================================
--- trunk/ui/hotKey/src/main/templates/org/richfaces/htmlHotKey.jspx	2008-12-04 10:37:18 UTC (rev 11540)
+++ trunk/ui/hotKey/src/main/templates/org/richfaces/htmlHotKey.jspx	2008-12-04 11:24:31 UTC (rev 11541)
@@ -74,6 +74,11 @@
 						org.richfaces.component.util.MessageUtil.getLabel(context, component) + 
 						"', because value of disableInInput attribute is not 'true'");
 				}
+			}else if (Boolean.TRUE.equals(disableInInput)) {
+				options.append(",disableInInputTypes:");
+				options.append('\'');
+				options.append(getUtils().escapeJavaScript("all"));
+				options.append('\'');
 			}
 			
 			Boolean checkParent = (Boolean) attributes.get("checkParent");




More information about the richfaces-svn-commits mailing list