確認ポップアップを生成するコマンド ボタンがあります。確認のテキストは、メッセージ バンドルから取得されます。確認にパラメータを渡すことは可能ですか?
これは私がしようとしているものです:
<h:commandButton value="#{tkmsg.addAccount}" action="#{ebfAccountControllerBean.specifyEbfAddAccount}"
onclick="return confirm('#{tkmsg.confirmAddAccount}');">
<f:param value="this account"/>
<f:param value="this email"/>
</h:commandButton>
しかし、うまくいきません。私はただ得る
Are you sure you want to add account {0} with email {1}?
パラメータは OutputText または OutputFormat でのみ機能しますか? これを行う他の方法はありますか?次のステップは、「このアカウント」をフォームのデータに置き換えることです。