This forum is closed to new posts and responses. New discussions are now taking place in the IBM Developer Answers forum.



Dec 30, 2011, 7:08 PM
57 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
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, 12: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. New discussions are now taking place in the IBM Developer Answers forum.