问题
I've already seen some examples, like the one below:
(source: javaworld.com)
That's nice description in theory, but I'd like to see also more JSF-related picture, with FacesServlet, PhaseListeners and other stuff to understand their role and sequence of calls in all these phases of lifecycle.
回答1:
You can find here several: "jsf lifecycle" at images.google.com.
Not a picture, but a complete self-practice example with detailed explanations what exactly happens during every phase can be found here: Debug JSF lifecycle. You (at least, many do) may find it more useful than just a picture.
In the book The Definitive Guide to JSF in Java EE 8, in chapter 3 "Components", page 56, the below diagram is used to summarize all aspects of the JSF lifecycle during a postback request. The numbers are in order. The book itself explains every step in detail. Copyright disclaimer: book is written by me and picture is created by me.
See also:
- What components are MVC in JSF MVC framework?
回答2:
Maybe you could check the Life Cycle of a JavaServer Faces Page tutorial from Java Sun. The tutorial has an life cycle image and some sections that explains some details of JSF.
回答3:
A little bit of google-fu turned up this JSF story-board. About 2/3rds down the page is a sequence diagram which breaks down the lifecycle phases, their operations, and the different components that actually perform them.
HTH.
来源:https://stackoverflow.com/questions/1958568/picture-article-which-describes-jsf-lifecycle-in-detail