Good Afternoon,
I have a search page that uses ajax to render a several datatables without refreshing the page. It is mandatory for me to call a Method as a Listener for each table. Below is the snippet for the first datatable that works fine.
为使第二个数据表一能够使用一种方法:#{evalController.prepareList}
作为亚x的名录。 问题在于:<f:ajax
> Listener"videnk ttakemore than one methods。
So the remaining way is to call <f:ajax
several times, and each time with a different listener, which does not work. Is there a way to achieve this?
If not, should I create a method in the managed Bean that calls all the methods that I need and use it as the one listener?
Thanks in advance for your help.
<h:form id="searchform">
<h:panelGrid columns="3" >
<p:inputText value="#{ddnController.patientID}" id="pidinput" maxlength="7" size="7">
<f:ajax execute="@this" event="keyup" render="searchbutton ddntable" listener="#{ddnController.prepareList}"/>
</p:inputText>
<h:commandButton image="#{resource[ images/search.png ]}" id="searchbutton" value="#{bundle.Search}"
action="submit" actionListener="#{ddnController.prepareList}"
disabled="#{empty ddnController.patientID or ddnController.patientID.equals( 0 )}"/>
<p:panel><h:outputText value="Saisir 0 pour avoir tous les Patients" style="font-style: italic;"/></p:panel>
</h:panelGrid>
<p:dataTable id="ddntable" value="#{ddnController.items}" var="ddn" rendered="#{!empty ddnController.items}" paginator="true" >....