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