title: Is it possible to call parameterized method-signature inside a composite-component?
body: <p>im currently creating a JSF composite-component with a method signature that can accept parameters. </p>
  
  <p>Here's the excerpt :</p>
  
  <pre><code>&lt;composite:interface&gt;
      ....
      &lt;composite:attribute name="activateHeroMethod" method-signature="java.util.List action(id.co.sofcograha.core.Dto, id.co.sofcograha.core.Dto)" /&gt;
  &lt;/composite:interface&gt;
  
  &lt;composite:implementation&gt;
      ....
      &lt;p:commandLink value="#{hero.map['heroName']}"
          process="@this"
          update="#{cc.attrs.update}"
          oncomplete="infoRaceDialog.hide()"
          image="ui-icon ui-icon-search"&gt;
          &lt;f:setPropertyActionListener value="#{hero}"
              target="#{cc.attrs.activateHeroMethod(infoRaceBean.race, hero)}" /&gt;
      &lt;/p:commandLink&gt;
      ....
  &lt;/composite:implementation&gt;
  </code></pre>
  
  <p><strong>target="#{cc.attrs.activateHeroMethod(infoRaceBean.race, hero)}"</strong> fails horribly with the following error message :</p>
  
  <pre><code>javax.faces.view.facelets.TagAttributeException: /resources/sofco/infoRace.xhtml @57,76 target="#{cc.attrs.activateHeroMethod(infoRaceBean.race, hero)}" /resources/sofco/infoRace.xhtml @57,76 target="#{cc.attrs.activateHeroMethod(infoRaceBean.race, hero)}" Illegal attempt to pass arguments to a composite component lookup expression (i.e. cc.attrs.[identifier]).
          at com.sun.faces.facelets.tag.TagAttributeImpl.getValueExpression(TagAttributeImpl.java:401)
          at com.sun.faces.facelets.tag.TagAttributeImpl.getValueExpression(TagAttributeImpl.java:351)
          at com.sun.faces.facelets.tag.jsf.core.SetPropertyActionListenerHandler.applyAttachedObject(SetPropertyActionListenerHandler.java:128)
          at com.sun.faces.facelets.tag.jsf.core.SetPropertyActionListenerHandler.apply(SetPropertyActionListenerHandler.java:101)
  </code></pre>
  
  <p>Is it possible to call the parameterized method from a composite-component's attribute ?
  I think i can deal with multiple  as a workaround of working with multiple parameters in one method, but i dont like the approach, since it'll grow in size along with the parameters.</p>
  
  <p>I could wrap every params into 1 wrapper object, but im still curious whether there's a way to solve the problem of calling the method with multiple params.</p>
  
  <p>Please share your thoughts !</p>
  
  <p>Thank you.</p>