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 depends on the content the action populates.
How can I run the action before launching the popup without javascript?
<p:commandLink action="#{service.computePrefetch(_var)}" onclick="dlg.show()"/>