How do I get information about the view state on a force.com site page?

I know that the development mode footer has an option to show the view state which I’ve used before when developing internal Salesforce pages; however, I don’t see how that can be used on a force.com site page.

How do I get information about the view state when working with a Force.com site page? Ideally, the solution would work for force.com site authenticated (via customer portal auth) pages as well.

Thanks.

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

For pages that don’t require customer portal authentication, you can access them through https://[instance].salesforce.com/apex/[page name]. This gives you the entire development mode footer.

I don’t have a solution for pages that may require authentication with a specific user.

Method 2

Go to Setup -> User Profile -> Select ‘Show View State in Development Mode’. At the bottom of your Visualforce page you will see 3 tabs -> Visualforce page, Apex Class and View State. Click on View State to get more information on the state of your Visualforce page.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x