The Portlet API only allows redirects to be requested from an action request.
Because views are rendered on the render request, views and
view-states cannot trigger a redirect.
externalRedirect: view prefix is a convenience for Servlet based flows.
IllegalStateException is thrown if a redirect is requested from a render request.
end-state redirects can be achieved by implementing
This callback provides the
ActionResponse object which supports redirects.
The portlet container passes the execution key from the previous flow when switching to a new mode.
Even if the mode is mapped to a different
FlowHandler the flow execution will resume the previous execution.
You may switch the mode programatically in your FlowHandler after ending a flow in an ActionRequest.
One way to start a new flow is to create a URL targeting the mode without the execution key.