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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Is object a composite data type in java?

488


Is java part of oracle?

470


Is java ee and j2ee same?

493


What is java j2ee developer?

466


What is the ear file?

533






What is j2ee product provider?

558


What is event handling in java?

487


What are the components and containers in java?

497


What is java listener?

493


What is group?

543


Is class a data type in java?

486


I Want build and release interview questions

3119


What is caller principal?

551


Is j2ee a framework?

479


What is Document Object Model?

550