I have p:commandLink that launches a dialog on click. Next, there is an action that must be performed before starting the dialogue, since the dialogue depends on the content that fills the action.
How to run an action before launching a popup without javascript?
<p:commandLink action="#{service.computePrefetch(_var)}" onclick="dlg.show()"/>
source share