I have a p:commandLink which launches a dialog on click. Further there is an action, which must be executed before launching the dialog, as the dialog
p:commandLink
With the oncomplete attribute and the ajax update attribute.
Execution order:
onclick->action->update->oncomplete
BalusC posted a detailed sequence Execution order of events when pressing PrimeFaces p:commandButton