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:
Scott Andrews
2008-10-13 19:30:09 +00:00
parent 8b5a88376a
commit d9592a7957
3 changed files with 65 additions and 0 deletions

View File

@@ -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">