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 a java application server?

0 Answers  


What is multi tier architecture in j2ee?

0 Answers  


What is declaration?

0 Answers  


What is j2ee component?

0 Answers  


What is the difference between java and core java?

0 Answers  






What is a j2ee module?

0 Answers  


How does javac compiler work?

0 Answers  


What is Document Object Model?

0 Answers  


What is java api for xml processing (jaxp)?

0 Answers  


Why frameworks are used in java?

0 Answers  


what is transaction?what are the differenr type of transactions

1 Answers   HCL,


Why java is called robust and secure?

0 Answers  


Categories