I am reading Core JavaServer Faces 3rd edition and I got a question about the encoding and decoding of JSF pages.
When the page is about to be rendered it will first go through the XHTML page containing JSF tags. Each JSF tag has a own tag handler class and they co-operate to make the component tree of that page. All other tags is ignored.
Each component has a own renderer that knows how to generate the HTML. Now the book says:
(This is a h:inputText tag)
Each component has a renderer that produces HTML output, reflecting the component state. The renderer of the UIInput object asks the JSF implementation to look up the unique ID and the current value fo the expression user.name.
The question is:
Why does the book say that the implementation asks for the current value of the expression user.name
? I would expect that the implementation instead asked the component - in this case UIInput
- which had some reference to this user bean instead? Because, doesn't that class "reflects" the JSF tag in code?
I probably have misunderstood the concept and I would like to learn it.