いくつかの'があるjsfページがあります。Enterキーを押すと、特定のボタンをクリックする必要があります。このボタンは非表示になっています。JSを使用せずにこれを行う方法はありますか?ボタンをページの最初のボタンとして配置すると、デフォルトでクリックされますが、機能しないようです。
これがサンプルコードです。「Enter」をクリックして「hiddenButton」を表示したい。
<h:form>
<h:commandButton id="button1" action="#{bean.action1}" />
<h:commandButton id="button2" action="#{bean.action2}" />
<h:commandButton id="button3" action="#{bean.action3}" />
<h:commandButton id="hiddenButton" action="#{bean.hiddenAction}" style="display:none;"/>
<h:form>