What is the benefit of Jsf's life cycle?

5

Personally I see people speaking that one should understand the JSF life cycle. And I wanted to understand what utilities we will have to understand?

    
asked by anonymous 17.10.2014 / 19:32

1 answer

2

Like every programming language, you should know the basics of how it works. JSF is no different but it does not mean that you can not build a system if you do not know its life cycle. Studying it is just to know how, when and where to use the advanced features of it. If you know the answers to the questions below, you do not need to study the life cycle. Let's see:

  • Do you know when the JSF tree does not need to be rendered or when data needs to be kept on the page in case of a problem?

  • Do you know when SET methods are called, ie when values are updated?

  • Do you know when the validation processes are performed? Do you know when it checks whether a field is required or when your custom validator runs?

  • Do you know when the action originated from a clicked button or link is executed?

  • And finally, do you know when everything that was asked to be done, and processed successfully, is presented?

  • If you know the answers to these and other questions, such as knowing that immediate in an action component causes some life cycles to be ignored, it may help a lot in certain cases.

    Note: The scope used influences a lot in the life cycle so, in addition to studying the cycle, study the scopes.

        
    20.10.2014 / 02:33