<div class="gmail_quote">On Tue, Apr 28, 2009 at 12:59 PM, David Geary <span dir="ltr"><<a href="mailto:clarity.training@gmail.com">clarity.training@gmail.com</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;">
I'm not seeing default values applied to composite component attributes when those attributes are not specified in the using page.</blockquote><div><br>My experience was the same. I was really hoping that this would work to avoid having to use <c:set> tags inside of my composite component.<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><br></div><div>I'm also not seeing an difference in behavior in my app when I specify that an attribute is required and I don't supply it. The javadocs for the composite:attribute required attribute simply say:<div>
<br></div><div> "True if the page author must supply a value for this attribute."</div><div><br></div><div>But it gives no insight as to what should happen when the page author fails to supply a value. Do we throw an exception? The result of not providing a required attribute should be specified in the javadocs, IMO.</div>
</div></blockquote><div><br>I believe this relates to the "strict" mode functionality we were discussing in a separate thread:<br><br><a href="http://archives.java.sun.com/cgi-bin/wa?A2=ind0904&L=JSR-314-OPEN&P=170">http://archives.java.sun.com/cgi-bin/wa?A2=ind0904&L=JSR-314-OPEN&P=170</a><br>
<br>But yes, it should be enforced, IMO.<br><br></div></div>-Dan<br clear="all"><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br><br><a href="http://mojavelinux.com">http://mojavelinux.com</a><br>
<a href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</a><br><a href="http://in.relation.to/Bloggers/Dan">http://in.relation.to/Bloggers/Dan</a><br><br>NOTE: While I make a strong effort to keep up with my email on a daily<br>
basis, personal or other work matters can sometimes keep me away<br>from my email. If you contact me, but don't hear back for more than a week,<br>it is very likely that I am excessively backlogged or the message was<br>
caught in the spam filters. Please don't hesitate to resend a message if<br>you feel that it did not reach my attention.<br>