use of org.springframework.webflow.mvc.portlet.PortletMvcView in project uPortal by Jasig.
the class RuntimeMvcViewFactory method createMvcView.
/* (non-Javadoc)
* @see org.springframework.webflow.mvc.view.AbstractMvcViewFactory#createMvcView(org.springframework.web.servlet.View, org.springframework.webflow.execution.RequestContext)
*/
@Override
protected AbstractMvcView createMvcView(View view, RequestContext context) {
final ExternalContext externalContext = context.getExternalContext();
final Object nativeRequest = externalContext.getNativeRequest();
if (nativeRequest instanceof PortletRequest) {
return new PortletMvcView(view, context);
}
return new ServletMvcView(view, context);
}
Aggregations