JSF Managed beans vs Components?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

JSF Managed beans vs Components?

kossel
Hi all

I have been using JSF appfuse for few days. as far as I know primefaces (jsf) uses managed bean for view lifecycle but why the tutorial and the appfuse gen use @Component annotation instead of @managedBean annotation? but when I look further, the userForm is mapped using managedBean in faces-config.xml

Can someone explain what is the difference or pro/cons of using  @Component(from spring?) and JSF managedBean

thanks!