The outjection is only
workingif the bean declaring it is called. Else nothing is happening.
What you want is either a @Factory or an @Unwrap. I normally prefer factories for data that has to be cleanly called from the pages. Together with the correct scopes and observers this can be a quite powerful and maintainable solution.
Thank you so much for your reply. The method initialize() called before page is rendered. I think in this case the Bean is called. Is it right?
Aye true. It is called through the pages.xml. The problem is not that the outjection is not working i would say. C foreach is used to build the jsf tree. Im not sure if this happens before the outjection but this could be the issue. You can trace this easily. In case you want just to initialize this var before it is called i would go for the factory.