protected void nonFacesRequest(RenderRequest request, RenderResponse response, String view)
throws PortletException
{
if (log.isTraceEnabled()) log.trace("Non-faces request: contextPath = " + request.getContextPath());
setContentType(request, response); // do this in case nonFacesRequest is called by a subclass
ApplicationFactory appFactory =
(ApplicationFactory)FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
Application application = appFactory.getApplication();
ViewHandler viewHandler = application.getViewHandler();
FacesContext facesContext = facesContext(request, response);
UIViewRoot viewRoot = viewHandler.createView(facesContext, view);
viewRoot.setViewId(view);
facesContext.setViewRoot(viewRoot);