-
1. Re: many commandButtons x ENTER key
ilya_shaikovsky Aug 3, 2010 7:24 AM (in response to edilmar)use hotKey component to prevent default Enter (key=return) behavior.
-
2. Re: many commandButtons x ENTER key
edilmar Aug 4, 2010 11:32 AM (in response to ilya_shaikovsky)Hi,
I look at sample codes from livedemo for hotkey, all running fine in my Firefox.
However, when I try to implement something seemed in my webapp, the hotkey doesn't work.
Below is part of my xhtml file:
<rich:panel style="width:100%;">
<f:facet name="header">
<h:outputText value="Cadastro de Auditorias"/>
</f:facet>
<div id="fields">
<rich:tabPanel id="tabPanelMestre" name="tabPanelMestre" switchType="server">
<rich:tab id="tabMD0" name="tabMD0" label="1. Auditoria" disabled="false" reRender="messages">
<h:form id="formauditoria">
<a4j:commandButton id="listauditoria" image="/imagens/listarmacro.gif"action="#{auditoria.getLst}" immediate="true" title="#{msgBotoes['labelListar']} - Alt+Shift+L"
accesskey="l" rendered="#{!auditoria.detalhe}"/>
<rich:hotKey key="ctrl+l" handler="#{rich:element('listauditoria')}.click()"/>...
I have used accesskey because hotKey doesn't work.
If I use "ctrl+l", Firefox understands it has to select all the URL.
If I use "ctrl+up", like Live Demo sample, none occurs.
If I delete code for accesskey, living only hotKey, none occurs.
-
3. Re: many commandButtons x ENTER key
ilya_shaikovsky Aug 5, 2010 7:34 AM (in response to edilmar)any js errors?