and click a button, sending the
state you have stored in the page back to the server for use.
Server:
The ViewState is stored on the server, so the page only has a sequence
number to identify, on postback, which rendered state we should use.
lightbulb432 wrote:
That's a good point. Few
1.2 standardized on the identifier: javax.faces.ViewState, previous
versions of JSF 1.1 (myfaces and RI) each had their own identifiers
which caused difficulties for component developers
lightbulb432 wrote:
What is the purpose of the hidden field named javax.faces.ViewState, and
how
does
with
different component trees).
I agree with Craig though, you can learn a lot from the source - much
more than just looking naively at the generated output. :)
Regards,
Jeff Bischoff
Kenneth L Kurz Associates, Inc.
Craig McClanahan wrote:
On 12/21/06, lightbulb432 [EMAIL PROTECTED] wrote
with
different component trees).
I agree with Craig though, you can learn a lot from the source - much
more than just looking naively at the generated output. :)
Regards,
Jeff Bischoff
Kenneth L Kurz Associates, Inc.
Craig McClanahan wrote:
On 12/21/06, lightbulb432 [EMAIL PROTECTED] wrote
) each had their own identifiers
which caused difficulties for component developers
lightbulb432 wrote:
What is the purpose of the hidden field named javax.faces.ViewState, and
how
does it differ from the following hidden fields:
- jsf_view_64
- jsf_tree_64
Also, I noticed some sample
Regarding the back button problem, I have a question:
So the issue is that you have an original page with a form on it
(page1.html) that was obtained through a GET; the browser bar shows
page1.html. You POST that form to a destination of page2.html (as defined in
form) and a response is
I've been noticing in my output a jsf_sequence hidden form field that
increments on what seems to be each request. What's the reason for such an
incrementing hidden field?
Does it have something to do with this back button issue? If so, how?
I tried using a debugger but quickly got
That's a good point. Few follow ups below:
1) Could you please explain what, on a high level, the general algorithm
used by the server would be to see whether the state is part of the same
sequence of activities? e.g. if I open up two windows and am doing two
different things at the same time,
What is the purpose of the hidden field named javax.faces.ViewState, and how
does it differ from the following hidden fields:
- jsf_view_64
- jsf_tree_64
Also, I noticed some sample HTML outputs from JSF, and they had multiple
javax.faces.ViewState hidden fields throughout the page. I also