I'm using this code to update some parts of a page:
<h:selectOneMenu value="#{shopPerformanceManager.shopId}" id="shopSelect">
<s:selectItems value="#{shopPerformanceManager.employeeShops}" var="selectShop"
label="#{selectShop.name}" itemValue="#{selectShop.id}" />
<a:ajax event="change" render=":myElem1 :myElem2 :myElem3" listener="#{shopPerformanceManager.refresh}"
oncomplete="paintGraphs()" />
</h:selectOneMenu>
Now the problem with this is that it produces one AJAX request and one response, after which myElem1, myElem2 and myElem3 are rendered. What I want instead are three separate requests and responses, so that the elements are processed in parallel and shown ASAP.
您可以在同一selectOneMenu中使用许多a:ajax标签,
<h:selectOneMenu> <s:selectItems /> <a:ajax event="change" listener="#{listener1}" /> <a:ajax event="change" listener="#{listener2}" /> <a:ajax event="change" listener="#{listener3}" /> </h:selectOneMenu>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.