Author: ayanul
Date: 2008-06-25 06:15:07 -0400 (Wed, 25 Jun 2008)
New Revision: 9211
Modified:
trunk/test-applications/jsp/src/main/java/hotKey/HotKey.java
trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp
Log:
Modified: trunk/test-applications/jsp/src/main/java/hotKey/HotKey.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/hotKey/HotKey.java 2008-06-25 10:04:14 UTC
(rev 9210)
+++ trunk/test-applications/jsp/src/main/java/hotKey/HotKey.java 2008-06-25 10:15:07 UTC
(rev 9211)
@@ -3,6 +3,9 @@
*/
package hotKey;
+import java.util.Collection;
+import java.util.Collections;
+
import javax.faces.context.FacesContext;
import org.richfaces.component.html.HtmlHotKey;
@@ -14,15 +17,15 @@
public class HotKey {
private HtmlHotKey binding = null;
private String bindingInfo = "";
- private String handler = "alert('#{hotKey.key} is pressed; event type: ' +
event.type); return false;";
+ private String handler = "alert('#{hotKey.key} is pressed')";
private String key = "alt+a";
- private String selector = "none";
- private String timing = "immediate";
+ private String selector = "";
+ private String timing = "onload";
private String type = "onkeydown";
private boolean rendered = true;
private boolean disableInInput = false;
private boolean checkParent = false;
-
+ Collection<E>
/**
* @return the binding
*/
Modified: trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp 2008-06-25 10:04:14 UTC
(rev 9210)
+++ trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp 2008-06-25 10:15:07 UTC
(rev 9211)
@@ -20,21 +20,20 @@
</h:selectOneMenu>
<h:outputText value="key"></h:outputText>
- <h:inputText value="#{hotKey.key}">
- <a4j:support reRender="hotKeyID"
event="onchange"></a4j:support>
+ <h:inputText value="#{hotKey.key}" onchange="submit();">
</h:inputText>
<h:outputText value="timing"></h:outputText>
<h:selectOneMenu value="#{hotKey.timing}"
onchange="submit();">
- <f:selectItem itemLabel="immediate" itemValue="immediate"/>
<f:selectItem itemLabel="onload" itemValue="onload"/>
+ <f:selectItem itemLabel="immediate" itemValue="immediate"/>
<f:selectItem itemLabel="onregistercall"
itemValue="onregistercall"/>
</h:selectOneMenu>
<h:outputText value="selector"></h:outputText>
<h:selectOneMenu value="#{hotKey.selector}">
+ <f:selectItem itemLabel="" itemValue=""/>
<f:selectItem itemLabel="Button"
itemValue="#commandButtonID"/>
- <f:selectItem itemLabel="none" itemValue=" "/>
<a4j:support reRender="hotKeyID"
event="onchange"></a4j:support>
</h:selectOneMenu>
@@ -42,7 +41,7 @@
<h:outputText value="handler"></h:outputText>
<h:selectOneMenu value="#{hotKey.handler}"
onchange="submit();">
<f:selectItem
itemValue="$('formID:hotKeySubviewID:hotKeyCalendarID').component.nextYear();"
itemLabel="nextYear(Calendar)"/>
- <f:selectItem itemValue="alert(#{hotKey.key}' is pressed; event type:
' + event.type); return false;" itemLabel="alert(...)"/>
+ <f:selectItem itemValue="alert('#{hotKey.key} is pressed')"
itemLabel="alert(...)"/>
</h:selectOneMenu>
<h:outputText value="disableInInput"></h:outputText>
Show replies by date