<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>Ok. It alleviates the problem in the next part, "Field initial value declarations", with saying<br><br>"If an element representing a field specifies both an initial value and a type declaration, a DefinitionException is thrown<br>by the Web Bean manager at initialization time."<br><br>Maybe it is good to put this sentences into the "Fields of a Web Bean" part.<br><br>Thanks;<br><br>Gurkan<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Gurkan Erdogdu &lt;gurkanerdogdu@yahoo.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Nicklas Karlsson &lt;nickarls@gmail.com&gt;<br><b><span
 style="font-weight: bold;">Cc:</span></b> webbeans-dev@lists.jboss.org<br><b><span style="font-weight: bold;">Sent:</span></b> Thursday, December 4, 2008 5:49:23 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [webbeans-dev] [XML Field Decleration]<br></font><br>
<div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div>Hi Nick,<br><br>Thanks for answer.<br><br>But then it is able to define a field in the XML that the field initial value is an integer but the field is actually an injection point for the another webbeans, I think it must be error for such an configuration.<br><br>For example;<br><br>public class MyBean<br>{<br>&nbsp;&nbsp; @Current x.y.x.AnotherBean injectedBean; --&gt; then how to possible to set 15 as an initial value?<br>}<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Nicklas Karlsson &lt;nickarls@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Gurkan Erdogdu
 &lt;gurkanerdogdu@yahoo.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> webbeans-dev@lists.jboss.org<br><b><span style="font-weight: bold;">Sent:</span></b> Thursday, December 4, 2008 5:38:48 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [webbeans-dev] [XML Field Decleration]<br></font><br>
You can get a quick interpretation for me and then wait for a correct one ;-)<br><br>&gt; In the spec within the part of the "Fields of a Web Bean", it says that<br>&gt;<br>&gt; "If a field declaration has more than one direct child element, and at least<br>&gt; one of these elements is not &lt;value&gt; element in<br>&gt; the Web Beans namespace, a DefinitionException is thrown by the Web Bean<br>&gt; manager at initialization time."<br>&gt;<br>&gt; Then, is it true that the following definition is correct ? iow, can the<br>&gt; field decleration contains both the &lt;value&gt; field and the injection field?<br>&gt;<br>&gt; &lt;mybean:myField&gt;<br>&gt;&nbsp; &nbsp;  &lt;value&gt;15&lt;/value&gt;<br>&gt;&nbsp; &nbsp;  &lt;mybean&gt;x.y.x.AnotherBean&lt;/mybean&gt;<br>&gt; &lt;/mybean:myField&gt;<br><br>I don't see a problem. The problem would be if the &lt;value&gt; wouldn't be<br>there. The sentence alone would not<br>forbid multiple &lt;value&gt;
 fields, either.<br><br>&gt; Actually it also says that "An element that represents a field may declare<br>&gt; an injected field, a producer field or a field with an initial value.".<br>&gt;<br>&gt; is there a contradiction?<br><br>Well, I dont see any "one of" so I don't see the contradiction.<br><br>This is only my interpretation of the word in the specs, I don't have<br>any more details.<br><br><br>-- <br>---<br>Nik<br></div></div></div><br>

      </div></div></div><br>

      </body></html>