<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>In the spec within the part of the "Fields of a Web Bean", it says that <br><br>"If a field declaration has more than one direct child element, and at least one of these elements is not <value> element in<br>the Web Beans namespace, a DefinitionException is thrown by the Web Bean manager at initialization time."<br><br>Then, is it true that the following definition is correct ? iow, can the field decleration contains both the <value> field and the injection field?<br><br><mybean:myField><br> <value>15</value><br> <mybean>x.y.x.AnotherBean</mybean><br></mybean:myField><br><br>Actually it also says that "An element that represents a field may declare an injected field, a producer field or a field with an initial value.".
<br><br>is there a contradiction?<br><br>Thanks;<br><br>Gurkan<br></div></div><br>
</body></html>