File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes get the ViewState Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "get the ViewState" Watch "get the ViewState" New topic
Author

get the ViewState

Rainer Zufall
Greenhorn

Joined: Aug 08, 2012
Posts: 2
How can I retrieve the ViewState before it is sent to the client?
I know how to get the ViewState from a request.
I have an ajax-enabled webapp and I would like to know how I can get the ViewState when the user enters webapp with a GET-request. Can I get the ViewState in RenderResponse-phase before the response is sent to the client?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

Any time you try to solve a JSF problem by digging into JSF internals, the probability is that you are doing it wrong. JSF is designed to make things simple.

Also, any time you use a fictitious display name, you incur the wrath of the Powers that Be. We don't have many rules here at the JavaRanch, but one we are most insistent on is that people use real names. For details: http://www.javaranch.com/name.jsp

A real display name will get you a real answer.


Customer surveys are for companies who didn't pay proper attention to begin with.
Rainer Zufall
Greenhorn

Joined: Aug 08, 2012
Posts: 2
I found one way:
 
wood burning stoves
 
subject: get the ViewState
 
Similar Threads
ajax + jsf + viewstate
viewstate encryption in jsf1.1.3
MS 70-528 Johnsson Northrup Chpt 3 page 102
Clear the value of parameter 'javax.faces.ViewState'
ViewState value