/** * Return a string containing a webapp-relative URL that the user can invoke * to render the specified view. * <p> * URLs and ViewIds are not quite the same; for example a url of "/foo.jsf" * or "/faces/foo.jsp" may be needed to access the view "/foo.jsp". * <p> * This method simply delegates to ViewHandlerSupport.calculateActionURL. */ public String getActionURL(FacesContext facesContext, String viewId) { return getViewHandlerSupport().calculateActionURL(facesContext, viewId); }
/** * Return a string containing a webapp-relative URL that the user can invoke * to render the specified view. * <p> * URLs and ViewIds are not quite the same; for example a url of "/foo.jsf" * or "/faces/foo.jsp" may be needed to access the view "/foo.jsp". * <p> * This method simply delegates to ViewHandlerSupport.calculateActionURL. */ @Override public String getActionURL(FacesContext facesContext, String viewId) { return getViewHandlerSupport().calculateActionURL(facesContext, viewId); }
/** * Return a string containing a webapp-relative URL that the user can invoke * to render the specified view. * <p> * URLs and ViewIds are not quite the same; for example a url of "/foo.jsf" * or "/faces/foo.jsp" may be needed to access the view "/foo.jsp". * <p> * This method simply delegates to ViewHandlerSupport.calculateActionURL. */ @Override public String getActionURL(FacesContext facesContext, String viewId) { return getViewHandlerSupport().calculateActionURL(facesContext, viewId); }
/** * Just invoke StateManager.restoreView. */ public UIViewRoot restoreView(FacesContext facesContext, String viewId) { Application application = facesContext.getApplication(); ViewHandler applicationViewHandler = application.getViewHandler(); String renderKitId = applicationViewHandler.calculateRenderKitId(facesContext); String calculatedViewId = getViewHandlerSupport().calculateViewId(facesContext, viewId); UIViewRoot viewRoot = application.getStateManager().restoreView(facesContext, calculatedViewId, renderKitId); return viewRoot; }
/** * Just invoke StateManager.restoreView. */ @Override public UIViewRoot restoreView(FacesContext facesContext, String viewId) { Application application = facesContext.getApplication(); ViewHandler applicationViewHandler = application.getViewHandler(); String renderKitId = applicationViewHandler.calculateRenderKitId(facesContext); String calculatedViewId = getViewHandlerSupport().calculateViewId(facesContext, viewId); UIViewRoot viewRoot = application.getStateManager().restoreView(facesContext, calculatedViewId, renderKitId); return viewRoot; }
/** * Just invoke StateManager.restoreView. */ @Override public UIViewRoot restoreView(FacesContext facesContext, String viewId) { Application application = facesContext.getApplication(); ViewHandler applicationViewHandler = application.getViewHandler(); String renderKitId = applicationViewHandler.calculateRenderKitId(facesContext); String calculatedViewId = getViewHandlerSupport().calculateViewId(facesContext, viewId); UIViewRoot viewRoot = application.getStateManager().restoreView(facesContext, calculatedViewId, renderKitId); return viewRoot; }
try calculatedViewId = getViewHandlerSupport().calculateViewId(facesContext, viewId);
try calculatedViewId = getViewHandlerSupport().calculateViewId(facesContext, viewId);
try calculatedViewId = getViewHandlerSupport().calculateViewId(facesContext, viewId);