This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSF and the fly likes input type= Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "input type="hidden" value="....a chain of rubbish letter..."!!" Watch "input type="hidden" value="....a chain of rubbish letter..."!!" New topic
Author

input type="hidden" value="....a chain of rubbish letter..."!!

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 234
I use the browser view source function to see
the html generated by jsf,
and always see something like the following:

<input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="8EgC7hvJoXWgMHaUZxk5rx66APlnNueyP32ajDxbvc
/i5akMf2jX5ZGyBjrnsmcbFDLXCaS8cHN169OeG5k
DXxvWNcBMTAigJiokZI5Ne66G0/CILkEquml3xSn
+jI4+HDkEeDEBtmlPDjjFJyOcOmZ+87klHuSTgAe
5P6mMDOQOqrH0Pj9yl+
............++nBOnItypO1I+XXANTsWVuCGc
V2sghVuKD42Kt/UFL7c6gh4S7KuRSQTuzsQzs
kJZBO7OxDOyQl0Yq1NF68G0U6T4uIj27tlXp
OehNZq4LNOhvQdQH7D6ZKdmAKbVesQLrzhzo
9mnY9MN0zJj1r9NhEWfhlFpRxIxYKVda+2p
PzvUD9+wbS2NpmjNu5opnJ++XI9z5KpWbdb
lb9JKIaP6Zzxdsh2E41VBicsyuBzaOTZoz
buaKZyfvJAmuJTdCe+/H9z8iOGr8SQHtmk1
8OUgs7l4BGSVeW3JGgo6F2EHIjEMwkhmgQI
kRwDYBkboU2tAin0sPxMybTF65p98Jrn1Gs
......10bBgnfB2FWSo74DqQ==" />

the value is a chain of meaningless letter, what is it?
will it slow down the page rendering in browser?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

JSF uses this hidden attribute to save the state of the view in an encrypted form. You'll find details in the JSF Specification, "7.6.2 State Saving Alternatives and Implications".


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: input type="hidden" value="....a chain of rubbish letter..."!!
 
Similar Threads
[JSF2] Hidden input "javax.faces.ViewState" attribute "autocomplete" causes validation failed
JSF client side state saving
Incorrect state saving of the part of the view ?
Multiple forms and duplicate javax.faces.ViewState ids
id of radio button not unique when SelectItemGroup is used