Jsf 在输入文本中按enter键时如何使用p:热键提交表单
我有以下片段:Jsf 在输入文本中按enter键时如何使用p:热键提交表单,jsf,primefaces,form-submit,hotkeys,Jsf,Primefaces,Form Submit,Hotkeys,我有以下片段: <h:form> <p:inputText id="inputId" ... /> <p:commandButton id="commandId" ... /> <p:hotkey bind="return ..." /> </h:form> 当我在中按Enter键时,如何使用调用?该键不是为捕获表单输入中的Enter键而设计的。它旨在捕获特殊的组合键,如箭头键以及整个页面中的Ctrl、A
<h:form>
<p:inputText id="inputId" ... />
<p:commandButton id="commandId" ... />
<p:hotkey bind="return ..." />
</h:form>
当我在
中按Enter键时,如何使用
调用
?该键不是为捕获表单输入中的Enter键而设计的。它旨在捕获特殊的组合键,如箭头键以及整个页面中的Ctrl、Alt和Shift组合
你需要的是
设计用于捕获表单输入中的Enter键。它旨在捕获特殊的组合键,如箭头键以及整个页面中的Ctrl、Alt和Shift组合
你需要的是
<h:form>
<p:inputText ... />
<p:commandButton id="commandId" ... />
<p:defaultCommand target="commandId" />
</h:form>