jsf 2.1 a4j:commandButton不呈现结果表@ViewScope

时间:2016-08-15 12:28:04

标签: jsf-2 richfaces java-ee-6 ajax4jsf

我有一个使用a4j的web应用程序:commandButton,如下所示:

<h:form>
<a4j:region id="search_form">
<a4j:commandButton render="ListOfPerson" action="personBean.search" value="search" execute="@form" status="ajaxStatus"/>
</a4j:region>
<a4j:outputPanel id="ListOfPerson" ajaxRendered="true">
  <rich:datatable>...</rich:datatable>
</a4j:outputPanel>
</form>

bean使用@ManagedBean(faces包)和@ViewScope进行注释。当我将范围更改为@SessionScope时,一切都像预期的那样工作。有什么想法吗?

我使用以下导入:

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

0 个答案:

没有答案