-
1. Re: When is @Out necessary?
quilleashm Feb 19, 2007 5:34 AM (in response to lawrieg)Pretty much spot on, as you say, @Out is only required if the object reference may change and you want it updated in the relevant context after the action method has completed.
If you just mutate (e.g. use a setter) an injected component you don't need to outject it. -
2. Re: When is @Out necessary?
lawrieg Feb 19, 2007 5:38 AM (in response to lawrieg)Many thanks for that - I couldn't seem to find a clear answer for that in the docs.
Thanks,
Lawrie -
3. Re: When is @Out necessary?
quilleashm Feb 19, 2007 6:05 AM (in response to lawrieg)Raise a feature request against the documentation in JIRA if you think it could be enhanced. Chances are if you weren't sure about it then a bunch of other people aren't/weren't either!
-
4. Re: When is @Out necessary?
cja987 Feb 19, 2007 8:29 PM (in response to lawrieg)You might outject to a different scope or different context variable, or both. Any examples of this I can think of would be pretty contrived, but I'm sure someone will think of one eventually.
-
5. Re: When is @Out necessary?
pmuir Feb 20, 2007 3:53 AM (in response to lawrieg)You might want to outject something from a conversation scoped component (where you can use your SMPC to prevent LIEs) to the businessprocess scope. As for variable name - perhaps in a large app where you want shorter names in the class?