Author: adubovsky
Date: 2008-09-02 12:56:28 -0400 (Tue, 02 Sep 2008)
New Revision: 10280
Modified:
trunk/test-applications/jsp/src/main/java/hotKey/HotKey.java
trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp
Log:
add 'disableInInputTypes' attribute for hotHey
Modified: trunk/test-applications/jsp/src/main/java/hotKey/HotKey.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/hotKey/HotKey.java 2008-09-02 16:45:04 UTC
(rev 10279)
+++ trunk/test-applications/jsp/src/main/java/hotKey/HotKey.java 2008-09-02 16:56:28 UTC
(rev 10280)
@@ -27,7 +27,16 @@
private boolean disableInInput = false;
private boolean checkParent = false;
private HtmlHotKey htmlHotKey = null;
+ private String disableInInputTypes = "all";
+ public String getDisableInInputTypes() {
+ return disableInInputTypes;
+ }
+
+ public void setDisableInInputTypes(String disableInInputTypes) {
+ this.disableInInputTypes = disableInInputTypes;
+ }
+
public String add(){
ComponentInfo info = ComponentInfo.getInstance();
info.addField(htmlHotKey);
Modified: trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp 2008-09-02 16:45:04 UTC
(rev 10279)
+++ trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp 2008-09-02 16:56:28 UTC
(rev 10280)
@@ -11,7 +11,7 @@
<rich:hotKey id="hotKeyID" binding="#{hotKey.htmlHotKey}"
disableInInput="#{hotKey.disableInInput}"
handler="#{hotKey.handler}"
key="#{hotKey.key}" rendered="#{hotKey.rendered}"
- selector="#{hotKey.selector}" timing="#{hotKey.timing}"
type="#{hotKey.type}" />
+ selector="#{hotKey.selector}" timing="#{hotKey.timing}"
type="#{hotKey.type}"
disableInInputTypes="#{hotKey.disableInInputTypes}"/>
<h:panelGrid columns="2">
<h:outputText value="type"></h:outputText>
@@ -51,6 +51,14 @@
<h:selectBooleanCheckbox value="#{hotKey.disableInInput}">
<a4j:support reRender="hotKeyID"
event="onchange"></a4j:support>
</h:selectBooleanCheckbox>
+
+ <h:outputText value="disableInInput"></h:outputText>
+ <h:selectOneRadio value="#{hotKey.disableInInputTypes}" >
+ <f:selectItem itemValue="all" itemLabel="all"/>
+ <f:selectItem itemValue="buttons" itemLabel="buttons"/>
+ <f:selectItem itemValue="texts" itemLabel="texts"/>
+ <a4j:support reRender="hotKeyID"
event="onchange"></a4j:support>
+ </h:selectOneRadio>
<%--<h:outputText value="checkParent"></h:outputText>
<h:selectBooleanCheckbox value="#{hotKey.checkParent}">
Show replies by date