初期位置:
SEAM と RICHFACES を併用しています。
ページの読み込み時に 1 回実行する必要があるアクション (actionBean.doBefore と呼ばれる) を含む次のページ構成があります。
<page>
<action execute="#{actionBean.doBefore}"/>
<navigation from-action="#{actionBean.doAfter}">
<redirect view-id="/view/component/test.xhtml" />
</navigation>
</page>
問題
アクションは、ajax ごとにフィールドを検証するときにも実行されます。
<h:inputText value="#{formBean.price}" id="price" required="true">
<a4j:support event="onblur" reRender="price" ajaxSingle="true" bypassUpdates="true" />
</h:inputText>
または提案ボックスを使用します(入力する場合でも):
<rich:suggestionbox id="suggestionBoxId" for="city" suggestionAction="#{suggest.autocomplete}" var="result" minChars="3" nothingLabel="No capitals found" ajaxSingle="true" bypassUpdates="true" selfRendered="true" >
<h:column>
<h:outputText value="#{result.cityName}" />
</h:column>
</rich:suggestionbox>
前もってありがとう ラフィ