Hi<br><br><div class="gmail_quote">2010/10/27 Ganesh <span dir="ltr">&lt;<a href="mailto:ganesh@j4fry.org">ganesh@j4fry.org</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;">
LU&gt; I agree with you, just note as it was mentioned before we still need to do something<br>
LU&gt; to allow multiple action attributes for a single composite component, as reported here:<br>
LU&gt;<br>
LU&gt; <a href="https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=859" target="_blank">https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=859</a><br>
LU&gt;<br>
LU&gt; The idea of introduce cc:attribute &quot;targetName&quot; sounds good. In theory with this attribute<br>
LU&gt; we don&#39;t need add method-signature, because it can be inferred from the value of targetName.<br>
LU&gt; In the example posted by me, since the attribute name is &quot;action&quot;, the method-signature<br>
LU&gt; is not required.<br>
LU&gt;<br>
LU&gt; regards,<br>
LU&gt;<br>
LU&gt; Leonardo Uribe<br>
<br>
Wouldn&#39;t your patch for <a href="https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=755" target="_blank">https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=755</a> include working with other action attribute names? E.g.<br>

<br>
&lt;cc:interface&gt;<br>
    &lt;cc:attribute name=&quot;testAction&quot;/&gt;<div class="im"><br>
    &lt;cc:attribute name=&quot;label&quot;/&gt;<br>
&lt;/cc:interface&gt;<br>
&lt;cc:implementation&gt;<br></div>
    &lt;h:commandButton value=&quot;#{cc.attrs.label}&quot; action=&quot;#{cc.attrs.testAction}&quot;/&gt;<br>
&lt;/cc:implementation&gt;<br>
<br>
or even<br>
<br>
&lt;cc:interface&gt;<br>
    &lt;cc:attribute name=&quot;testAction1&quot;/&gt;<br>
    &lt;cc:attribute name=&quot;testAction2&quot;/&gt;<div class="im"><br>
    &lt;cc:attribute name=&quot;label&quot;/&gt;<br>
&lt;/cc:interface&gt;<br>
&lt;cc:implementation&gt;<br></div>
    &lt;ez:button value=&quot;#{cc.attrs.label}&quot; action=&quot;#{cc.attrs.testAction1}&quot;/&gt;<br>
    &lt;h:commandButton value=&quot;#{cc.attrs.label}&quot; action=&quot;#{cc.attrs.testAction2}&quot;/&gt;<br>
&lt;/cc:implementation&gt;<br>
<br>
is what developers expect to work. If it&#39;s necessary for the implementation they will accept a method-signature. I don&#39;t like te idea of introducing one more obscure target family attribute like targetName. Instead I&#39;d prefer to try and make targets obsolete.<br>

<br></blockquote><div><br>I don&#39;t think it is posible to use the previous syntax, because it is necessary to declare in some<br>way that the attribute will receive a MethodExpression, otherwise a ValueExpression will be used<br>
and an error will be thrown. To do that we have two options:<br><br>1. use method-signature param, but extend this param to allow multiple signature definitions.<br>2. use &quot;targetName&quot; attribute to indicate implicitly the method-signature.<br>
<br>I think use &quot;targetName&quot; attribute is better.<br><br>Suggestions are welcome.<br><br>best regards,<br><br>Leonardo Uribe<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Best regards,<br><font color="#888888">
Ganesh<br>
</font></blockquote></div><br>