<div class="gmail_quote">On Fri, May 8, 2009 at 3:24 AM, Dan Allen <span dir="ltr">&lt;<a href="mailto:dan.j.allen@gmail.com">dan.j.allen@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="gmail_quote"><div class="im">On Fri, May 8, 2009 at 3:18 AM, Gavin King <span dir="ltr">&lt;<a href="mailto:gavin.king@gmail.com" target="_blank">gavin.king@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Have you met producer fields yet?</blockquote></div><div><br>I&#39;ve skimmed over them, but perhaps it is time to dive in deep. I look forward to getting to know them better ;) I&#39;ll follow up afterwards.</div></div>
</blockquote><div><br>Okay, I have reviewed producer fields and even got a chance to exercise them in an example application. Please answer this question for me.<br><br>Is the intent of a producer field to update the produced result if the field is assigned a new value? If so, perfect. If not, then I run into the same problem as I do with a request-scoped producer method...it doesn&#39;t reproduce after the Invoke Application phase modifies the field value. Again, I like the idea of having the producer method be an observer so that I can reproduce...just an idea.<br>
<br>Btw, in my test using a producer field with Web Beans RI, it appears that they are behaving badly. Even across separate requests, the result of a request-scoped producer field is not being updated after the field value changes...even I change a property on the object held by the field. It appears as though Web Beans has a reference to some old copy of my object and even in a debugger I don&#39;t see the new value on the bean itself. So something isn&#39;t right. I need to debug more to try to see if I notice what is going on.<br>
<br>-Dan<br></div></div><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&#39;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&#39;t hesitate to resend a message if<br>
you feel that it did not reach my attention.<br>