-
1. Re: Conversation scoped component automatically outjected
azalea Jun 22, 2007 8:42 AM (in response to andreigh.ts)Hi,
Yeah, that doesn't outject the rfqRequest.
But the state of the rfqRequest instance is changed via rfqRequest#setName method.
For example, the following facesMessages is not outjected.
But we will see the error message in redirected view page when the error occurs....... @In private FacesMessages facesMessage; public void update() { ...... if (error) { facesMessages.add("error occured!!!"); } ...... } ......
I think that is a same thing as this. -
2. Re: Conversation scoped component automatically outjected
pmuir Jun 22, 2007 8:43 AM (in response to andreigh.ts)You are doing an operation on the instance of rfqRequest injected from the relevent scope - changes are made to the instance. If you did something like rfqRequest = new RfqRequest, you would need to outject that.
-
3. Re: Conversation scoped component automatically outjected
andreigh.ts Jun 22, 2007 9:38 AM (in response to andreigh.ts)Yes, it is clear to me that the modification can be seen in view because in this case @In injects the reference to the object in the context.
I was expecting that @In to inject a copy of the object from the context... Like in the case of EVENT scope. If I use the same code, but EVENT scope, the modification is not seen in the UI.