This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



May 6, 2011, 8:34 AM
57 Posts

How to access viewstate in Xpages

  • Category: Other
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags: ViewState
  • Replies: 1
Hi
 
I wonder where Xpages viewState is saved , client or server
if its client side, which hidden field is that, if its server, which parameter in session holds it?
 
(want to simulate the saveState controll function from Extension library)
 
regards
wei
May 9, 2011, 5:34 PM
41 Posts
Re: How to access viewstate in Xpages
 The FacesContext object is the "brains" of an XPage. You can access it from SSJS via the global variable facesContext, or from Java via FacesContext.getCurrentInstance(). From there you can get the view root and inspect the entire component tree.

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal