• Post Reply Bookmark Topic Watch Topic
  • New Topic

In jsf ,when managed bean get instantiated ?

 
rahul rojekar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Please tell me when managed bean or faces context get initiated.
Actually i have to do something after managed bean instantiated and before the first faces request serve.

thanks
 
Max Katz
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Managed bean is created when referenced for the first time.
 
Tim Holloway
Bartender
Posts: 18412
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your JSF environment is of recent vintage, you can use the "@PostConstruct" annotation to perform functions after the constructor has been invoked and before the bean is used.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!