Dec 30, 2011, 9:25 AM
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
can not be used in Xpages "Function is not available in the Domino environement " and they spell wrong on this excpetion........."environement",    "environment"
but we can do this
pageA.xsp and pageB.xsp
pageA.xsp defines requestScope param, and pageB.xsp catch it
put a button in pageA.xsp
<xp:button value="Label" id="button1">
        <xp:eventHandler event="onclick" submit="true"
            <xp:this.action><![CDATA[#{javascript:requestScope.paramA="I am requestScope param";
var viewRoot1:UIViewRoot =facesContext.getApplication().getViewHandler().createView(facesContext, "/pageB.xsp");