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");