I would like to nest multiple setPropertyActionListener's in my commandLink but only one works. How do you attempt this? This command link sets properties and then opens a dialog so its basically initializing the dialog.
How is this accomplished?
<p:commandLink update=":dreamWebSearchFrm" value="#{bundle['dreamModify.search.link.TEXT']}" oncomplete="webSearchDlg.show()">
<f:setPropertyActionListener value="false" target="#{dreamSearchBean.shouldRender}"/>
<f:setPropertyActionListener value="true" target="#{dreamSearchBean.shouldRender1}"/>
</p:commandLink>
You could make use of EL parameters and call a single method on your bean. From that method, update whatever you want.
e.g.
#{dreamSearchBean.shouldRenderInit(false, true)}
In your bean:
public void shouldRenderInit(boolean one, boolean two) {
setShouldRender(one);
setShouldRender1(two);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With