Author: ayanul
Date: 2008-06-26 10:07:34 -0400 (Thu, 26 Jun 2008)
New Revision: 9241
Modified:
trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp
Log:
Modified: trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp 2008-06-26 13:46:39 UTC
(rev 9240)
+++ trunk/test-applications/jsp/src/main/webapp/HotKey/HotKey.jsp 2008-06-26 14:07:34 UTC
(rev 9241)
@@ -70,13 +70,15 @@
<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('jsID').component.add({handler:function(){alert('alt+x');},
selector:'#formID\:commandButtonID', key:'alt+x'}); alert('hi');
return false;" value="add js: alt+x"></h:commandLink>
- <h:commandLink id="jsRemoveJSID"
onclick="document.getElementById('jsID').remove(); return false;"
value="remove js: alt+x"></h:commandLink>
+
+ <h:commandLink id="jsAddJSID"
onclick="document.getElementById('formID:hotKeySubviewID:jsID').component.add({selector:'#formID\\\\:hotKeySubviewID\\\\:commandButtonID',
key:'alt+x',handler:function(){alert('alt+x');}}); alert('hi');
return false;" value="add js: alt+x"></h:commandLink>
+ <h:commandLink id="jsRemoveJSID"
onclick="document.getElementById('formID:hotKeySubviewID:jsID').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\:commandButtonID"
/>
+ <f:param name="selector"
value="#formID\:hotKeySubviewID\:commandButtonID" />
<f:param name="key" value="alt+z" />
<f:param name="handler" value="alert('alt+z')" />
</rich:componentControl>
Show replies by date