Hi<br><br><div class="gmail_quote">2010/10/27 Jakob Korherr <span dir="ltr">&lt;<a href="mailto:jakob.korherr@gmail.com">jakob.korherr@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
Just as an example of how badly we need #{cc.attrs.action} or<br>
#{cc.attrs.actionListener} to work in JSF 2.1, here is a mail from the<br>
myfaces-user-list from today (some parts are cut for clarity):<br>
<br>
For example imagine a simple component that uses a commandLink and has two<br>
attributes: &quot;action&quot; and &quot;actionListener&quot;:<br>
<br>
&lt;cc:interface&gt;<br>
 &lt;cc:attribute name=&quot;action&quot; method-signature=&quot;java.lang.String action()&quot;<br>
default=&quot;???&quot; /&gt;<br>
<div class="im"> &lt;cc:attribute name=&quot;actionListener&quot; method-signature=&quot;void<br>
</div>actionListener(javax.faces.event.ActionEvent)&quot; default=&quot;???&quot; /&gt;<br>
&lt;/cc:interface&gt;<br>
<br>
&lt;cc:implementation&gt;<br>
 &lt;tr:commandLink action=&quot;#{cc.attrs.action}&quot;<br>
actionListener=&quot;#{cc.attrs.actionListener}&quot; /&gt;<br>
&lt;/cc:implementation&gt;<br>
<br>
---&gt; The users really expect this to work! Frankly I also do and I<br>
guess everyone else agrees.<br></blockquote><div><br>I agree with you, just note as it was mentioned before we still need to do something <br>to allow multiple action attributes for a single composite component, as reported here:<br>
<br><a href="https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=859">https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=859</a><br><br>The idea of introduce cc:attribute &quot;targetName&quot; sounds good. In theory with this attribute<br>
we don&#39;t need add method-signature, because it can be inferred from the value of targetName.<br>In the example posted by me, since the attribute name is &quot;action&quot;, the method-signature<br>is not required.<br>
<br></div></div>regards,<br><br>Leonardo Uribe<br>