我有一个使用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;