[richfaces-svn-commits] JBoss Rich Faces SVN: r9272 - in trunk/ui/hotKey/src: test/java/org/richfaces/component and 1 other directory.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Fri Jun 27 07:41:12 EDT 2008


Author: nbelaevski
Date: 2008-06-27 07:41:11 -0400 (Fri, 27 Jun 2008)
New Revision: 9272

Modified:
   trunk/ui/hotKey/src/main/templates/org/richfaces/htmlHotKey.jspx
   trunk/ui/hotKey/src/test/java/org/richfaces/component/HotKeyComponentTest.java
Log:
http://jira.jboss.com/jira/browse/RF-3795

Modified: trunk/ui/hotKey/src/main/templates/org/richfaces/htmlHotKey.jspx
===================================================================
--- trunk/ui/hotKey/src/main/templates/org/richfaces/htmlHotKey.jspx	2008-06-27 11:16:20 UTC (rev 9271)
+++ trunk/ui/hotKey/src/main/templates/org/richfaces/htmlHotKey.jspx	2008-06-27 11:41:11 UTC (rev 9272)
@@ -38,6 +38,12 @@
 			String type = (String) attributes.get("type");
 			if (type != null && type.length() != 0) {
 				options.append(",type:'");
+				
+				if (type.startsWith("on")) {
+					// 2 is "on".length()
+					type = type.substring(2);
+				} 
+
 				options.append(type);
 				options.append("'");
 			}

Modified: trunk/ui/hotKey/src/test/java/org/richfaces/component/HotKeyComponentTest.java
===================================================================
--- trunk/ui/hotKey/src/test/java/org/richfaces/component/HotKeyComponentTest.java	2008-06-27 11:16:20 UTC (rev 9271)
+++ trunk/ui/hotKey/src/test/java/org/richfaces/component/HotKeyComponentTest.java	2008-06-27 11:41:11 UTC (rev 9272)
@@ -163,7 +163,7 @@
 	public void testOptions2() throws Exception {
 		Map<String, Object> attributes = this.hotKey.getAttributes();
 		attributes.put("timing", "onload");
-		attributes.put("type", "keyup");
+		attributes.put("type", "onkeyup");
 		attributes.put("propagate", Boolean.FALSE);
 		attributes.put("disableInInput", Boolean.TRUE);
 		attributes.put("checkParent", Boolean.FALSE);




More information about the richfaces-svn-commits mailing list