I am new to JSF and i have started JSF 2.0 recently. I am currently referring to Core Java Server Faces Edition 3.
I was at chapter 2 which is called Managed Beans and i came across some statements which made me confused. Any help
in their context will be highly appreciated.
-It says the term backing bea and the definition is sometimes it is convinient to design a bean that contains some or all component objects
of a web-form. Such a bean is called a backing bean. This backing bean (JavaBean) contains properties that are bound to either component value or
component instance. My question is
1- What does it mean by binding component value or component instance? What's the basic difference?
2- Secondly it tells something about CDI beans. It says that, it is good to use CDI beans rather then backing beans when you deploy your application
in a web-server. My question is why should i use CDI, when my managed bean is managed by the framework itself and this CDI bean configuration
i have to write somewhere. Why should i take this hassle?
Another thing, am i following right path by using Core Java Server Faces, because it is updated for JSF 2.0. Any other tutorials or pointers will be
appreciated as well.
They seem to be pretty nice links and i have checked one of them. Still i am pretty much a novice in JSF development so many things
i am not able to understand but some basic difference is concluded in my head though.
I think so to understand the basic difference, we should clearly understand the JSF life-cyle. Very good link is JSFLifeCycle It has made me understand a certain things and then i referred back to the first link you provided me. I am not able to get what he is
trying to say in value binding thing. I guess either he has written it a bit complex or the context of sentences is not right.
Gone through the links that you've provided, Really heplful and informative, I believe understanding JSF is not easy, .. WE have long way to go.. Keep me posted on good links and tutorials on JSF....
Joined: Oct 13, 2009
I fairly agree with you learning JSF is not easy. It takes a bit of time to understand its concepts. Why can't we both make a roadmap learning
JSF and complete things as a team? Let me know about your views.