Which one should we prefer while using bean ?
managed bean annotation or faces-config



Which one should we prefer while using bean ? managed bean annotation or faces-config..

Answer / m4n07

Since we can create managed bean by two ways as,
we can define the bean name in faces-config.xml file so that
page can use that OR we can write annotation on bean class so
that it is automatically assign to page but I want to know
which one is good programming practice ?

And also mention disadvantage of other which should not prefer
...

Thanking you...

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More J2EE Interview Questions

What is java ee sdk?

0 Answers  


What is java netbeans?

0 Answers  


How many types of modules is defined by j2ee specification?

0 Answers  


How java is reliable?

0 Answers  


What does j2ee stand for?

0 Answers  






is it possible to create single instance of java class per session in web application

4 Answers  


How can we serialize a jsp page.

3 Answers   CSC, HCL, Oracle,


What are the components and containers in java?

0 Answers  


What is certificate authority?

0 Answers  


Difference between treemap & sortedset

3 Answers   Oracle,


What is component-managed sign-on ?

0 Answers  


What is ebxml?

0 Answers  


Categories