5
People I see people talking about understanding the life cycle of JSF. And I wanted to understand what uses we will have when understanding?
5
People I see people talking about understanding the life cycle of JSF. And I wanted to understand what uses we will have when understanding?
2
Like any programming language, you must know the basics of how it works. JSF is no different but it doesn’t mean you can’t build a system if you don’t know its life cycle. Studying him is just to find out how, when and where to use his advanced resources. If you know the answers to the questions below it means you don’t need to study the life cycle. Let’s see:
You know when the JSF tree doesn’t need to be rendered or when the data needs to be kept on the page in case of a problem?
You know when SET methods are called, i.e., when values are updated?
Do you know when the validation processes are carried out? Know when he checks if a field is required or when his custom validator runs?
You know when the action originated from a button or clicked link is executed?
And finally, you know when everything that was asked to be done, and successfully processed, is presented?
If you know the answers to these and other questions, how to know that the immediate in an action component cause some life cycles to be ignored, can help and much in certain cases.
Obs.: The scope used influences a lot in the life cycle thus, in addition to studying the cycle, study the scopes.
Browser other questions tagged jsf
You are not signed in. Login or sign up in order to post.
Nice of you to say, I really don’t know how to answer them all. But my curiosity left because I see a lot to talk about it and also a problem the other day that arose from certain methods being called at all times when you are loading the page.
– Macario1983
@Macario1983 is for these reasons that many people recommend studying it. Good luck!
– Ascension
Dude you recommend some material to read.?
– Macario1983
@Macario1983, I think it’s forbidden to recommend things here but, at the risk, I recommend the Core Javaserver Faces - David Geary. This is excellent!
– Ascension