title: ui:param - passing method arguments
body: <p>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 </p>
  
  <blockquote>
    <p>actionListener="#{bean[confMethod(param1, param2)]}"</p>
  </blockquote>
  
  <p>but it does not have any problem with just</p>
  
  <blockquote>
    <p>actionListener="#{bean[confMethod]}"</p>
  </blockquote>
  
  <p>file1.xhtml:</p>
  
  <pre><code>&lt;ui:composition&gt;
  .....
      &lt;ui:include src="/jsf/include/dg_confirm.xhtml"&gt;
          &lt;ui:param name="bean" value="#{myController}" /&gt;
          &lt;ui:param name="question" value="Are you sure?" /&gt;
          &lt;ui:param name="confMethod" value="myMethod" /&gt;
          &lt;ui:param name="param1" value="#{otherController.param1}" /&gt;
          &lt;ui:param name="param2" value="#{urlToFollow}" /&gt;
      &lt;/ui:include&gt;
  
  &lt;/ui:composition&gt;
  </code></pre>
  
  <p>and the dialog</p>
  
  <p>dg_confirm.xhtml</p>
  
  <pre><code>....
  &lt;p:commandButton value="Yes" oncomplete="PF('dlg_conf').hide();" actionListener="#{bean[confMethod(param1, param2)]}" ajax="false"/&gt;
  .....
  </code></pre>
  
  <p>Question: Is it possible to pass argument for the method somehow in JSF?</p>