To your first question: the component is oujected after each and every method of CustomIdentity Take a look at the corresponding Seam source code org.jboss.seam.core. BijectionInterceptor (Seam 2.2.0). Bijection takes place at component, i.e.
, class, level.
To your first question: the component is oujected after each and every method of CustomIdentity. Take a look at the corresponding Seam source code org.jboss.seam.core. BijectionInterceptor (Seam 2.2.0).
Bijection takes place at component, i.e. , class, level. To your second question: every time a request to CustomIdentity finishes, the value of your field is outjected.
If you use the outjection property require=false, the user that is currently outjected in your session context may be overridden by null.
Thanks man! So, if I have a method which will be invoked at some point and which will set the user into session and leave it there, no matter how many invocations of CustomIdentity methods take place, I should have @In(required=false) and @Out(required=false)? – Markos Fragkakis Oct 17 '10 at 20:59 Sorry, I meant @Out(required=true).
– Markos Fragkakis Oct 17 '10 at 21:05 1 No that wouldn't work because outjection takes place whether you have injected or not. If you have exactly one method that should outject the user and any other method should not outject the user, then you have two possibilities: either you have that particular method in a separated component or you outject it by hand: Contexts. GetSessionContext().
Set("user", user); – kraftan Oct 17 '10 at 21:09 Sorry, our comments were crossing ;) Yes @Out(required=true) should work, too. – kraftan Oct 17 '10 at 21:10 I don't know. Could it be that you encounter a session timeout or your request may have another session id?
Have you checked whether the request that doesn't have the user in SESSION gets the same session context as the request before? – kraftan Oct 17 '10 at 21:21.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.