[seam-dev] How to "clear" something from a context

Dan Allen dan.j.allen at gmail.com
Fri May 8 14:00:27 EDT 2009


On Fri, May 8, 2009 at 3:24 AM, Dan Allen <dan.j.allen at gmail.com> wrote:

> On Fri, May 8, 2009 at 3:18 AM, Gavin King <gavin.king at gmail.com> wrote:
>
>> Have you met producer fields yet?
>
>
> I've skimmed over them, but perhaps it is time to dive in deep. I look
> forward to getting to know them better ;) I'll follow up afterwards.
>

Okay, I have reviewed producer fields and even got a chance to exercise them
in an example application. Please answer this question for me.

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

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't see the new value on the bean itself. So
something isn't right. I need to debug more to try to see if I notice what
is going on.

-Dan

-- 
Dan Allen
Senior Software Engineer, Red Hat | Author of Seam in Action

http://mojavelinux.com
http://mojavelinux.com/seaminaction
http://in.relation.to/Bloggers/Dan

NOTE: While I make a strong effort to keep up with my email on a daily
basis, personal or other work matters can sometimes keep me away
from my email. If you contact me, but don't hear back for more than a week,
it is very likely that I am excessively backlogged or the message was
caught in the spam filters.  Please don't hesitate to resend a message if
you feel that it did not reach my attention.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/seam-dev/attachments/20090508/3272173b/attachment.html 


More information about the seam-dev mailing list