Which JSF 1.2 component is responsible for instantiating managed bean specified in faces-config.xml?
I’d like to replace this component with my custom-made version which will perform some additional tasks after bean instance is successfully created.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No one component is responsible for that. It is just EL which is responsible for that. If the expression
#{beanname}returns null, it will create one which is associated with the managed bean name.In your specific case, the normal way to solve this problem is just making use of the constructor of the bean or a public method of the bean annotated with
@PostConstruct.If you really want to take the EL resolving in your own hands, then best what you can do is to implement a custom
ELResolver. You can find here an article about that.