0
私のWebアプリケーション用の簡単な検索エンジンを実行していますが、私は問題に直面しています。フォームの内容に応じたCommandButtonのアクションURL
私のsearch.xhtml
は、パラメータを取得することで機能し、search.xhtml?key=lol
は "lol"の結果を返します。
私の検索コマンドボタンは、search.xhtml?key=INPUT TEXT CONTENT
をリダイレクトする必要があります。
はここに私の単純なコードです:dispensaRicercaBean
は@RequestScoped
と私の結果ページで
<div id="searchBox">
<pou:panel id="searchPanel">
<h:form>
<h:inputText id="searchInput" value="#{dispensaRicercaBean.query}" size="99" maxlength="99"/> <pou:commandButton icon="ui-icon-search" action="ricerca?faces-redirect=true"/>
<pou:watermark value="Search" for="searchInput"/>
</h:form>
</pou:panel>
</div>
がexecuteQuery(#{request.getParameter('key'))
呼び出してデータロード
私はそれをどのように行うことができます(ラフの例を、実際にいくつかの違いがありますか)?