JSF: initial request and postback request?
Posted
by Harry Pham
on Stack Overflow
See other posts from Stack Overflow
or by Harry Pham
Published on 2010-05-12T21:28:31Z
Indexed on
2010/05/12
21:34 UTC
Read the original article
Hit count: 1059
Please take a look at this below line of code in JSF
<h:inputText id="name" value="#{customer.name}" />
Quote from java.sun.com
For an initial request of the page containing this tag, the JavaServer Faces implementation evaluates the #{customer.name} expression during the render response phase of the lifecycle. During this phase, the expression merely accesses the value of name from the customer bean, as is done in immediate evaluation.
For a postback request, the JavaServer Faces implementation evaluates the expression at different phases of the lifecycle, during which the value is retrieved from the request, validated, and propagated to the customer bean.
I am not sure I understand initial request
vs postback request
. Does the client browser make two different request to the webserver?
© Stack Overflow or respective owner