Hi<br><br><div class="gmail_quote">2010/10/27 Ganesh <span dir="ltr"><<a href="mailto:ganesh@j4fry.org">ganesh@j4fry.org</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;">
Can you please give a use case for multiple method signatures? The use cases that come to my mind would work fine with:<br>
<br>
<cc:attribute name="testAction" method-signature="String method()" /><br>
<br></blockquote><div><br>"action" could receive the following signatures:<br><br>String method()<br>Object method()<br>void method()<br><br>Really the most clear case is "actionListener":<br><br>void method(javax.faces.event.ActionEvent )<br>
void method()<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Concerning targetName: I must admit I don't fully understand what this is meant to do. Do you have a list of possible f:attribute types in mind (like "value", "action", "valueChangelistener", "validator" and "actionListener")? If this is the concept of targetName I'd prefer naming it "type", so we could have:<br>
<br>
<cc:attribute name="testAction" type="action" /><br>
<cc:attribute name="testValidator" type="validator" /><br>
<br></blockquote><div><br>Unfortunately "type" is already used and has this description:<br><br>"...Declares that this attribute must be a ValueExpression whose expected type is given by the value of this attribute. If not specified, and no "method-signature" attribute is present, java.lang.Object is assumed. This attribute is mutually exclusive with the "method-signature" attribute. If both attributes are present, the "method-signature" attribute is ignored..."<br>
<br>Maybe something like "targetProperty" could work? or maybe "methodType" or "targetMethodType"?. Valid values to this attribute will be "action", "actionListener", "validator" and "valueChangeListener".<br>
<br>best regards,<br><br>Leonardo Uribe<br><br></div></div>