[ACCEPTED]-Execute p:commandLink action before onclick event?-primefaces
Accepted answer
With the oncomplete attribute and the ajax 2 update attribute.
<p:commandLink action="#{service.computePrefetch(_var)}" update="dlgId" oncomplete="dlg.show()"/>
Execution order:
onclick->action->update->oncomplete
BalusC 1 posted a detailed sequence Execution order of events when pressing PrimeFaces p:commandButton
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.