Thanks Simon, I wasn't aware of this. Will be keeping that test in JSFUnit for JSF 1.1 users still.<br><br>Dennis Byrne<br><br><div><span class="gmail_quote">On 11/15/07, <b class="gmail_sendername">Simon Lessard</b> <
<a href="mailto:simon.lessard.3@gmail.com">simon.lessard.3@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Heya,
<br><br>JSF 1.2 XSD does contains the uniqueness constraint (MyFaces' XSD):<br><br><span style="font-family: courier new,monospace;"> <xsd:element name="faces-config" type="javaee:faces-configType">
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <xsd:unique name="faces-config-converter-ID-uniqueness"></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <xsd:selector xpath="javaee:converter"/></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
<xsd:field xpath="javaee:converter-id"/></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </xsd:unique></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <xsd:unique name="faces-config-converter-for-class-uniqueness"></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
<xsd:selector xpath="javaee:converter"/></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <xsd:field xpath="javaee:converter-for-class"/>
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </xsd:unique></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
<xsd:unique name="faces-config-validator-ID-uniqueness"></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <xsd:selector xpath="javaee:validator"/>
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <xsd:field xpath="javaee:validator-id"/></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> </xsd:unique></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <xsd:unique name="faces-config-managed-bean-name-uniqueness">
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <xsd:selector xpath="javaee:managed-bean"/></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <xsd:field xpath="javaee:managed-bean-name"/></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
</xsd:unique></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> </xsd:element></span><br><br>Anyway, that won't protect anyone from using the same name in different config files though.
<br><a href="mailto:dennisbyrne@apache.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"></a>
</blockquote></div><br><br clear="all"><br>-- <br>Dennis Byrne