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



Dec 30, 2011, 4:38 PM
272 Posts

Re: redirecting to another xpage but reqestscope is empty

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags: requestScope
  • Replies: 8
Hi,
 
adding xsp.redirect=false to the xsp.properties-file would give you the same result and it is much easier to implement ;-)
I have written an article about this feature here (on german only).
 
Sven
 
http://blog.hasselba.ch
Dec 31, 2011, 12:08 AM
57 Posts
Re: redirecting to another xpage but reqestscope is empty
thanks, Sven, where did you find the list of configurable properties in xsp.property? 
 
but there is a method for that now, no need to configure in xsp.property 
requestScope.paramA="something";
context.redirectToPage("/pageB.xsp",false);

 
I do believe that the code behind redirect=false, is the more or less the same as manually choosing a page viewroot for rendering
trace of code:
com.ibm.xsp.designer.context.XSPContext.redirectToPage(String paramString, boolean paramBoolean)
com.ibm.xsp.designer.context.XSPContext.renderPage(String paramString, boolean paramBoolean)
com.ibm.xsp.application.NavigationHandlerImpl.createView(localFacesContext, paramString, paramBoolean)
com.ibm.xsp.controller.FacesControllerImpl.restoreView(FacesContext paramFacesContext, String paramString)
 
REF: https://forums.oracle.com/forums/thread.jspa?threadID=654384
 
 

Dec 31, 2011, 5:13 PM
272 Posts
Re: redirecting to another xpage but reqestscope is empty
You can find a description of the properties in the xsp.properties.sample-file. As far as I know, the "XPages Portable Command Guide" (available Feb. 2012) will have a complete(?) list of all properties.
The redirection-parameter will affect ALL redirections (f.e. links etc.), not only the redirects you are do with context.redirectToPage(). If set to false, the request scope will work "as designed".
 
Sven
 

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