初始位置:
我们将 SEAM 与 RICHFACES 一起使用。
我们有以下页面配置和一个动作(称为 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>
在此先感谢拉菲