I'm trying to use a commandLink with two PropertyActionListeners, with two different Managed Beans as targets:
Code: Select all
<p:commandLink update="documentPanel" oncomplete="documentDialog.show()" title="Sjá nánar" >
<p:graphicImage value="/images/search.png" />
<f:setPropertyActionListener value="#{document}"
target="#{documentController.selectedDocument}" />
<f:setPropertyActionListener value="#{document.name}"
target="#{fileUploadController.folderName}" />
</p:commandLink>
The latter setPropertyActionListener does not seem to be called.
Is this an incorrect way to use setPropertyActionListener?
Thanks.