Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

init a backing bean before all other beans initialization

843844Apr 25 2008 — edited Apr 25 2008
Hi, is there a way to force initialized a session scoped bean before all other managed beans get initialized? The use scenario is that I have a session scoped bean which all other beans depend on, so only that this bean gets initialized properly first, then other beans can be initialized.Otherwise they wont work.

I handled this with jsp pretty well as I can have java code on the page head section and manually save the beans to the session. but now I am switching to facelet which only work with xhtml (correct me if im wrong), so I have to come up with some other way of init this bean but before all other beans init.

any suggestions are much appreciated!

Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 23 2008
Added on Apr 25 2008
4 comments
288 views