protected ViewHandlerSupport getViewHandlerSupport() { return getViewHandlerSupport(FacesContext.getCurrentInstance()); }
@Override public String getActionURL(FacesContext context, String viewId) { return getViewHandlerSupport().calculateActionURL(context, viewId); }
@Override public String getActionURL(FacesContext context, String viewId) { return getViewHandlerSupport().calculateActionURL(context, viewId); }
@Override public String getActionURL(FacesContext context, String viewId) { checkNull(context, "facesContext"); checkNull(viewId, "viewId"); return getViewHandlerSupport(context).calculateActionURL(context, viewId); }
@Override public String deriveLogicalViewId(FacesContext context, String rawViewId) { if(rawViewId != null) { try { return getViewHandlerSupport(context).calculateViewId(context, rawViewId); } catch (InvalidViewIdException e) { sendSourceNotFound(context, e.getMessage()); } } return rawViewId; // If the argument input is null, return null. }
@Override public String deriveViewId(FacesContext context, String input) { if(input != null) { try { return getViewHandlerSupport(context).calculateAndCheckViewId(context, input); } catch (InvalidViewIdException e) { sendSourceNotFound(context, e.getMessage()); } } return input; // If the argument input is null, return null. }
@Override public String deriveLogicalViewId(FacesContext context, String rawViewId) { if(rawViewId != null){ try { //TODO: JSF 2.0 - need to make sure calculateViewId follows the new algorithm from 7.5.2 return getViewHandlerSupport().calculateViewId(context, rawViewId); } catch (InvalidViewIdException e) { sendSourceNotFound(context, e.getMessage()); } } return rawViewId; // If the argument input is null, return null. }
@Override public UIViewRoot restoreView(FacesContext context, String viewId) { checkNull(context, "context"); String calculatedViewId = getViewHandlerSupport().calculateViewId(context, viewId); // we cannot use this.getVDL() directly (see getViewHandler()) //return getViewHandler(context) // .getViewDeclarationLanguage(context,calculatedViewId) // .restoreView(context, calculatedViewId); // -= Leonardo Uribe =- Temporally reverted by TCK issues. return getViewDeclarationLanguage(context,calculatedViewId).restoreView(context, calculatedViewId); }
@Override public UIViewRoot restoreView(FacesContext context, String viewId) { checkNull(context, "context"); String calculatedViewId = getViewHandlerSupport().calculateViewId(context, viewId); // we cannot use this.getVDL() directly (see getViewHandler()) //return getViewHandler(context) // .getViewDeclarationLanguage(context,calculatedViewId) // .restoreView(context, calculatedViewId); // -= Leonardo Uribe =- Temporally reverted by TCK issues. return getViewDeclarationLanguage(context,calculatedViewId).restoreView(context, calculatedViewId); }
@Override public UIViewRoot createView(FacesContext context, String viewId) { checkNull(context, "facesContext"); String calculatedViewId = getViewHandlerSupport().calculateViewId(context, viewId); // we cannot use this.getVDL() directly (see getViewHandler()) //return getViewHandler(context) // .getViewDeclarationLanguage(context, calculatedViewId) // .createView(context, calculatedViewId); // -= Leonardo Uribe =- Temporally reverted by TCK issues. return getViewDeclarationLanguage(context,calculatedViewId).createView(context,calculatedViewId); }
@Override public String deriveViewId(FacesContext context, String input) { if(input != null){ try { //TODO: JSF 2.0 - need to make sure calculateViewId follows the new algorithm from 7.5.2 return getViewHandlerSupport().calculateAndCheckViewId(context, input); } catch (InvalidViewIdException e) { sendSourceNotFound(context, e.getMessage()); } } return input; // If the argument input is null, return null. }
@Override public String deriveViewId(FacesContext context, String input) { if(input != null){ try { //TODO: JSF 2.0 - need to make sure calculateViewId follows the new algorithm from 7.5.2 return getViewHandlerSupport().calculateAndCheckViewId(context, input); } catch (InvalidViewIdException e) { sendSourceNotFound(context, e.getMessage()); } } return input; // If the argument input is null, return null. }
@Override public UIViewRoot createView(FacesContext context, String viewId) { checkNull(context, "facesContext"); String calculatedViewId = getViewHandlerSupport().calculateViewId(context, viewId); // we cannot use this.getVDL() directly (see getViewHandler()) //return getViewHandler(context) // .getViewDeclarationLanguage(context, calculatedViewId) // .createView(context, calculatedViewId); // -= Leonardo Uribe =- Temporally reverted by TCK issues. return getViewDeclarationLanguage(context,calculatedViewId).createView(context,calculatedViewId); }
@Override public UIViewRoot createView(FacesContext context, String viewId) { checkNull(context, "facesContext"); String calculatedViewId = getViewHandlerSupport(context).calculateViewId(context, viewId); // we cannot use this.getVDL() directly (see getViewHandler()) //return getViewHandler(context) // .getViewDeclarationLanguage(context, calculatedViewId) // .createView(context, calculatedViewId); // -= Leonardo Uribe =- Temporally reverted by TCK issues. ViewDeclarationLanguage vdl = getViewDeclarationLanguage(context,calculatedViewId); if (vdl == null) { // If there is no VDL that can handle the view, throw 404 response. sendSourceNotFound(context, viewId); return null; } return vdl.createView(context,calculatedViewId); }
String calculatedViewId = getViewHandlerSupport(context).calculateViewId(context, viewId);
@Override public UIViewRoot restoreView(FacesContext context, String viewId) { checkNull(context, "context"); String calculatedViewId = getViewHandlerSupport(context).calculateViewId(context, viewId); // we cannot use this.getVDL() directly (see getViewHandler()) //return getViewHandler(context) // .getViewDeclarationLanguage(context,calculatedViewId) // .restoreView(context, calculatedViewId); // -= Leonardo Uribe =- Temporally reverted by TCK issues. ViewDeclarationLanguage vdl = getViewDeclarationLanguage(context,calculatedViewId); if (vdl == null) { // If there is no VDL that can handle the view, throw 404 response. sendSourceNotFound(context, viewId); return null; } return vdl.restoreView(context, calculatedViewId); }
String calculatedViewId = getViewHandlerSupport().calculateViewId(context, viewId);
String calculatedViewId = getViewHandlerSupport().calculateViewId(context, viewId);