How to call different web services (different java methods) on row select in data table and update the page asynchronous through ajax using row select.
I have this scenario because that i have 5 tabs should be updated by getting data from 5 methods. While 1st listener have not given data its effecting all anther tabs. so i want to call them separately.
<p:ajax event="rowSelect" listener="#{userController.onFetchUsers}"
update=":userRightPaneForm :usersForm:usersList"/>
<p:ajax event="rowSelect" listener="#{userController.onFetchUserDetails}"
update=":userRightPaneForm :usersForm:usersList"/>
I have tried like this. But both onFetchUsers
and onFetchUserDetails
Method calling 2 times on row select event.
I am using Prime faces 3.4.2
How can i achieve it?
Any suggestions will be appreciated.