In the spec within the part of the "Fields of a Web Bean", it says that

"If a field declaration has more than one direct child element, and at least one of these elements is not <value> element in
the Web Beans namespace, a DefinitionException is thrown by the Web Bean manager at initialization time."

Then, is it true that the following definition is correct ? iow, can the field decleration contains both the <value> field and the injection field?

<mybean:myField>
    <value>15</value>
    <mybean>x.y.x.AnotherBean</mybean>
</mybean:myField>

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.".

is there a contradiction?

Thanks;

Gurkan