奇怪的Primefaces4更新问题

时间:2014-04-15 09:27:20

标签: jsf primefaces

我使用的是PF4,这个版本会出现以下情况(3.5一切都很好):

这是两个p:remoteCommand s

<p:remoteCommand name="refreshUserList" actionListener="#{userListManagedBean.loadUserList}" update="usersTabView:usersDataTableContainer"/>

<p:remoteCommand name="refreshInactiveUserList" actionListener="#{inactiveUserListManagedBean.loadUserList}" update="usersTabView:inactiveUsersDataTableContainer"/>

问题:如果我让用户处于非活动状态,那么它会调用refreshInactiveUserList remoteCommand,一切都很好,但如果我让用户处于活动状态,它会调用refreshUserList remoteCommand,bean中的函数成功执行,但在ajax响应中,userDataTable不包含新的活动用户。

欢迎任何想法!

提前谢谢!

1 个答案:

答案 0 :(得分:1)

process="@this"上使用p:remoteCommand 最好将p:remoteCommand放在单独的h:form

相关问题