SWF-765 throw an IllegalStateException if a redirect is requested on a portlet render request. Only the portlet action request supports redirects
This commit is contained in:
@@ -190,6 +190,12 @@ externalContext.requestMap.portletMode
|
||||
<para>
|
||||
The Portlet API only allows redirects to be requested from an action request.
|
||||
Because views are rendered on the render request, views and <code>view-state</code>s cannot trigger a redirect.
|
||||
The <code>externalRedirect:</code> view prefix is a convenience for Servlet based flows.
|
||||
An <code>IllegalStateException</code> is thrown if a redirect is requested from a render request.
|
||||
</para>
|
||||
<para>
|
||||
This limitation can be worked around for an <code>end-state</code> by implementing the <code>FlowHandler.handleExecutionOutcome</code> method.
|
||||
This callback provides the <code>ActionResponse</code> object which supports redirects.
|
||||
</para>
|
||||
</sect2>
|
||||
<sect2 id="portlet-issues-modes">
|
||||
|
||||
Reference in New Issue
Block a user