-
1. Re: Problem of c:forEach and seam outject
antibrumm.mfrey0.bluewin.ch Sep 25, 2011 4:41 AM (in response to damnh.damnh.aureole-net.com.vn)Hi
The outjection is only
working
if 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.
-
2. Re: Problem of c:forEach and seam outject
damnh.damnh.aureole-net.com.vn Sep 25, 2011 5:34 AM (in response to damnh.damnh.aureole-net.com.vn)Hi,
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? -
3. Re: Problem of c:forEach and seam outject
antibrumm.mfrey0.bluewin.ch Sep 25, 2011 8:22 AM (in response to damnh.damnh.aureole-net.com.vn)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.