Hi<br><br><div class="gmail_quote">2010/10/27 Jakob Korherr <span dir="ltr"><<a href="mailto:jakob.korherr@gmail.com">jakob.korherr@gmail.com</a>></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: "action" and "actionListener":<br>
<br>
<cc:interface><br>
<cc:attribute name="action" method-signature="java.lang.String action()"<br>
default="???" /><br>
<div class="im"> <cc:attribute name="actionListener" method-signature="void<br>
</div>actionListener(javax.faces.event.ActionEvent)" default="???" /><br>
</cc:interface><br>
<br>
<cc:implementation><br>
<tr:commandLink action="#{cc.attrs.action}"<br>
actionListener="#{cc.attrs.actionListener}" /><br>
</cc:implementation><br>
<br>
---> 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 "targetName" sounds good. In theory with this attribute<br>
we don'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 "action", the method-signature<br>is not required.<br>
<br></div></div>regards,<br><br>Leonardo Uribe<br>