/** * Calculate the Faces ViewId to which this request URI resolves. This method will recursively call any dynamic * mapping viewId functions as needed until a String viewId is returned, or supplied by a static mapping. * <p> * This phase does not support FacesNavigation or PrettyRedirecting. Its SOLE purpose is to resolve a viewId. * <p> * <i><b>Note:</b> Precondition - parameter injection must take place before this</i> * <p> * <i>Postcondition - currentViewId is set to computed View Id</i> * * @param facesContext2 * * @return JSF viewID to which this request resolves. */ public String computeDynaViewId(final FacesContext facesContext) { PrettyContext context = PrettyContext.getCurrentInstance(facesContext); UrlMapping urlMapping = context.getCurrentMapping(); return calculateDynaviewId(facesContext, urlMapping); }
/** * Calculate the Faces ViewId to which this request URI resolves. This method will recursively call any dynamic * mapping viewId functions as needed until a String viewId is returned, or supplied by a static mapping. * <p> * This phase does not support FacesNavigation or PrettyRedirecting. Its SOLE purpose is to resolve a viewId. * <p> * <i><b>Note:</b> Precondition - parameter injection must take place before this</i> * <p> * <i>Postcondition - currentViewId is set to computed View Id</i> * * @param facesContext2 * * @return JSF viewID to which this request resolves. */ public String computeDynaViewId(final FacesContext facesContext) { PrettyContext context = PrettyContext.getCurrentInstance(facesContext); UrlMapping urlMapping = context.getCurrentMapping(); return calculateDynaviewId(facesContext, urlMapping); }
/** * Calculate the Faces ViewId to which this request URI resolves. This method will recursively call any dynamic * mapping viewId functions as needed until a String viewId is returned, or supplied by a static mapping. * <p> * This phase does not support FacesNavigation or PrettyRedirecting. Its SOLE purpose is to resolve a viewId. * <p> * <i><b>Note:</b> Precondition - parameter injection must take place before this</i> * <p> * <i>Postcondition - currentViewId is set to computed View Id</i> * * @param facesContext2 * * @return JSF viewID to which this request resolves. */ public String computeDynaViewId(final FacesContext facesContext) { PrettyContext context = PrettyContext.getCurrentInstance(facesContext); UrlMapping urlMapping = context.getCurrentMapping(); return calculateDynaviewId(facesContext, urlMapping); }
/** * Calculate the Faces ViewId to which this request URI resolves. This method will recursively call any dynamic * mapping viewId functions as needed until a String viewId is returned, or supplied by a static mapping. * <p> * This phase does not support FacesNavigation or PrettyRedirecting. Its SOLE purpose is to resolve a viewId. * <p> * <i><b>Note:</b> Precondition - parameter injection must take place before this</i> * <p> * <i>Postcondition - currentViewId is set to computed View Id</i> * * @param facesContext2 * * @return JSF viewID to which this request resolves. */ public String computeDynaViewId(final FacesContext facesContext) { PrettyContext context = PrettyContext.getCurrentInstance(facesContext); UrlMapping urlMapping = context.getCurrentMapping(); return calculateDynaviewId(facesContext, urlMapping); }
if (mapping.isDynaView()) viewId = dynaview.calculateDynaviewId(context, mapping);
if (mapping.isDynaView()) viewId = dynaview.calculateDynaviewId(context, mapping);