我使用的是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不包含新的活动用户。
欢迎任何想法!
提前谢谢!
答案 0 :(得分:1)
在process="@this"
上使用p:remoteCommand
最好将p:remoteCommand
放在单独的h:form
。