I have an action where I call a webservice and depending on the web service’s output I decide to redirect the user to one of two pages.
I’ve tried the following but I’m getting an error:
java.lang.IllegalStateException: Must be a RenderRequest
at com.webMethods.caf.faces.portlet.PortletFacesContext$PortletExternalContext.dispatch(PortletFacesContext.java:178)
I’ve tried that but it failed with the error below.
It seems this only works if the the “page” is really another view, which is not the case.
java.lang.RuntimeException: [POP.016.0006] View source is not found: /NTT.view
at com.webMethods.caf.faces.view.xml.XMLViewHandler.getInputSource(XMLViewHandler.java:83)
at com.webMethods.caf.faces.view.xml.XMLViewHandler.createBuilder(XMLViewHandler.java:40)
at com.webMethods.caf.faces.view.BaseViewHandler.createView(BaseViewHandler.java:86)
at com.webMethods.caf.faces.bean.BasePortletPageBean.gotoPage(BasePortletPageBean.java:100)
Ok, i made an assumption and i should’ve clarified first. Are you trying to redirect the user to a different Portal Page, a different view in the same web application, a different portlet, or something else?