I have two xhtml files, one includes another. I already know how to pass the controller and method to be called to the dialog, what I am not sure is possible, is to actually pass arguments/objects to the method that will be called. I tried something like this, but Eclipse tells me there is syntax error in this part
actionListener="#{bean[confMethod(param1, param2)]}"
but it does not have any problem with just
actionListener="#{bean[confMethod]}"
file1.xhtml:
<ui:composition>
.....
<ui:include src="/jsf/include/dg_confirm.xhtml">
<ui:param name="bean" value="#{myController}" />
<ui:param name="question" value="Are you sure?" />
<ui:param name="confMethod" value="myMethod" />
<ui:param name="param1" value="#{otherController.param1}" />
<ui:param name="param2" value="#{urlToFollow}" />
</ui:include>
</ui:composition>
and the dialog
dg_confirm.xhtml
....
<p:commandButton value="Yes" oncomplete="PF('dlg_conf').hide();" actionListener="#{bean[confMethod(param1, param2)]}" ajax="false"/>
.....
Question: Is it possible to pass argument for the method somehow in JSF?