<br><div class="gmail_quote">On Tue, Apr 7, 2009 at 8:56 AM, Martin Marinschek <span dir="ltr"><<a href="mailto:mmarinschek@apache.org">mmarinschek@apache.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 08ex; padding-left: 1ex;">
Then I am for strict.</blockquote><div><br>Ok. So, the final proposal is that we add an attribute to <composite:interface>:<br><br>strict="{true|false}"<br><br>When strict is true, any use of an attribute which is not required will throw an exception (I'm not sure which exception, but I expect that others do).<br>
<br>Ed or Roger?<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><div><div class="h5"><br>
On 4/3/09, Pete Muir <<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>> wrote:<br>
> Just one :-)<br>
><br>
> On 3 Apr 2009, at 17:54, Kito Mann wrote:<br>
><br>
>> Are suggesting both of those options or just one?<br>
>><br>
>> Sent from my iPhone<br>
>><br>
>> <a href="http://www.jsfcentral.com" target="_blank">http://wwwjsfcentral.com</a><br>
>> <a href="http://www.Virtua.com" target="_blank">http://www.Virtua.com</a><br>
>><br>
>><br>
>> On Apr 3, 2009, at 2:50 PM, Pete Muir <<a href="mailto:pmuir@REDHAT.COM">pmuir@REDHAT.COM</a>> wrote:<br>
>><br>
>>> Yes, I like the idea. I was trying to think about attribute names,<br>
>>> as restrictAttributes feels wrong. How about<br>
>>><br>
>>> * strict="{true|false}"<br>
>>> * complete="{true|false}"<br>
>>><br>
>>> On 2 Apr 2009, at 12:56, Kito Mann wrote:<br>
>>><br>
>>>> So, here's one other thing that came up at JSFDays -- the fact<br>
>>>> that composite components (like Facelet compositions) don't<br>
>>>> restrict which attributes can be used. This is fine for Facelet<br>
>>>> compositions, but since composite components can define specific<br>
>>>> attributes, it makes sense to give component authors the ability<br>
>>>> to restrict page authors to those attributes.<br>
>>>><br>
>>>> I think the easiest way to handle this from a component author's<br>
>>>> perspective would be to add an attribute to the<br>
>>>> <component:interface> tag:<br>
>>>><br>
>>>> <component:interface restrictAttributes="true"><br>
>>>> <component:attribute name="name" required="true"/><br>
>>>> <component:attribute name="size"/><br>
>>>> </component:interface><br>
>>>><br>
>>>> So, in this case, this component would _only_ accept the name and<br>
>>>> size attributes, and the runtime would throw an exception if<br>
>>>> another attribute were used. An IDE could also complain when<br>
>>>> someone tried to use a different attribute.<br>
>>>><br>
>>>> Thoughts?<br>
>>>> ---<br>
>>>> Kito D. Mann -- Author, JavaServer Faces in Action<br>
>>>> <a href="http://twitter.com/kito99" target="_blank">http://twitter.com/kito99</a> <a href="http://twitter.com/jsfcentral" target="_blank">http://twitter.com/jsfcentral</a><br>
>>>> <a href="http://www.virtua.com" target="_blank">http://www.virtua.com</a> - JSF/Java EE consulting, training, and<br>
>>>> mentoring<br>
>>>> <a href="http://www.JSFCentral.com" target="_blank">http://www.JSFCentral.com</a> - JavaServer Faces FAQ, news, and info<br>
>>>> +1 203-404-4848 x3<br>
>>>><br>
>>>> Public JSF Course in NYC (April 21st-24th):<br>
>>>> <a href="http://www.regonline.com/jsf-course" target="_blank">http://www.regonline.com/jsf-course</a><br>
>>>><br>
>>><br>
>>> --<br>
>>> Pete Muir<br>
>>> <a href="http://www.seamframework.org" target="_blank">http://www.seamframework.org</a><br>
>>> <a href="http://in.relation.to/Bloggers/Pete" target="_blank">http://in.relation.to/Bloggers/Pete</a><br>
><br>
> --<br>
> Pete Muir<br>
> <a href="http://www.seamframework.org" target="_blank">http://www.seamframework.org</a><br>
> <a href="http://in.relation.to/Bloggers/Pete" target="_blank">http://in.relation.to/Bloggers/Pete</a><br>
><br>
><br>
<br>
<br>
</div></div>--<br>
<br>
<a href="http://www.irian.at" target="_blank">http://www.irian.at</a><br>
<br>
Your JSF powerhouse -<br>
JSF Consulting, Development and<br>
Courses in English and German<br>
<br>
Professional Support for Apache MyFaces<br>
</blockquote></div><br>