Author: adubovsky
Date: 2008-07-15 07:52:55 -0400 (Tue, 15 Jul 2008)
New Revision: 9600
Modified:
trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp
Log:
changes in hotKey.jsp
Modified: trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp 2008-07-15 10:13:41 UTC
(rev 9599)
+++ trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp 2008-07-15 11:52:55 UTC
(rev 9600)
@@ -7,12 +7,11 @@
<rich:calendar id="hotKeyCalendarID" popup="false" />
- <h:commandButton id="commandButtonID" onclick="return false;"
- value="test select"></h:commandButton>
+ <h:commandButton id="commandButtonID" onclick="return false;"
value="test select"></h:commandButton>
<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}" />
+ selector="#{hotKey.selector}" timing="#{hotKey.timing}"
type="#{hotKey.type}" />
<h:panelGrid columns="2">
<h:outputText value="type"></h:outputText>
@@ -40,7 +39,6 @@
<a4j:support reRender="hotKeyID"
event="onchange"></a4j:support>
</h:selectOneMenu>
-
<h:outputText value="handler"></h:outputText>
<h:selectOneMenu value="#{hotKey.handler}"
onchange="submit();">
<f:selectItem
@@ -54,10 +52,10 @@
<a4j:support reRender="hotKeyID"
event="onchange"></a4j:support>
</h:selectBooleanCheckbox>
- <h:outputText value="checkParent"></h:outputText>
+ <%--<h:outputText value="checkParent"></h:outputText>
<h:selectBooleanCheckbox value="#{hotKey.checkParent}">
<a4j:support reRender="hotKeyID"
event="onchange"></a4j:support>
- </h:selectBooleanCheckbox>
+ </h:selectBooleanCheckbox>--%>
<h:outputText value="rendered"></h:outputText>
<h:selectBooleanCheckbox value="#{hotKey.rendered}">
@@ -67,57 +65,28 @@
<h:outputText value="test binding:"></h:outputText>
<h:outputText value="#{hotKey.bindingInfo}"></h:outputText>
- <button
- onclick="$(rich:component('hotKeyID')).enable(); return
false;">turn
- on</button>
- <button
- onclick="$(rich:component('hotKeyID')).disable(); return
false;">turn
- off</button>
- <br />
-
- <h:commandButton
- onclick="#{rich:component('hotKeyID')}.enable(); return false;"
- value="enable"></h:commandButton>
- <h:commandButton
- onclick="#{rich:component('hotKeyID')}.disable(); return false;"
- value="disable"></h:commandButton>
+ <h:commandButton onclick="#{rich:component('hotKeyID')}.enable();
return false;" value="enable"></h:commandButton>
+ <h:commandButton onclick="#{rich:component('hotKeyID')}.disable();
return false;" value="disable"></h:commandButton>
</h:panelGrid>
-
+ <f:verbatim><hr /></f:verbatim>
+
<rich:hotKey id="jsID" timing="onregistercall" />
<h:panelGrid columns="2">
<h:commandButton id="jsAddCCID" value="add hotkey:
alt+z"></h:commandButton>
<h:commandButton id="jsRemoveCCID" value="remove hotkey:
alt+z"></h:commandButton>
- <h:commandLink id="jsAddJSID"
- onclick="document.getElementById('formID:hotKeySubviewID:jsID').component.add({selector:'#formID\\:hotKeySubviewID\\:commandButtonID',
key:'alt+x',handler:function(){alert('alt+x');}}); return false;"
- value="add js: alt+x"></h:commandLink>
- <h:commandLink id="jsRemoveJSID"
- onclick="document.getElementById('formID:hotKeySubviewID:jsID').component.remove();
return false;"
- value="remove js: alt+x"></h:commandLink>
-
- <h:commandButton
- onclick="#{rich:component('jsID')}.enable(); return false;"
- value="enable"></h:commandButton>
- <h:commandButton
- onclick="#{rich:component('jsID')}.disable(); return false;"
- value="disable"></h:commandButton>
-
- <rich:componentControl disableDefault="true"
attachTo="jsAddCCID"
- for="jsID" event="onclick" operation="add">
- <f:param name="selector"
- value="#formID\:hotKeySubviewID\:commandButtonID" />
+ <rich:componentControl disableDefault="true"
attachTo="jsAddCCID" for="jsID" event="onclick"
operation="add">
<f:param name="key" value="alt+z" />
<f:param name="handler" value="alert('alt+z')" />
</rich:componentControl>
- <rich:componentControl disableDefault="true"
attachTo="jsRemoveCCID"
- for="jsID" event="onclick" operation="remove">
+ <rich:componentControl disableDefault="true"
attachTo="jsRemoveCCID" for="jsID" event="onclick"
operation="remove">
+ <f:param name="key" value="alt+z" />
</rich:componentControl>
-
</h:panelGrid>
- <br />
- <br />
+ <f:verbatim><hr /></f:verbatim>
+
<div style="FONT-WEIGHT: bold;">rich:findComponent</div>
<h:panelGrid columns="2">
<rich:column>
Show replies by date