org.apache.myfaces.shared.application
Interface ViewHandlerSupport

All Known Implementing Classes:
DefaultViewHandlerSupport

public interface ViewHandlerSupport

TODO: RENAME - This class is now used by ViewDeclarationLanguageBase A utility class to isolate a ViewHandler implementation from the underlying request/response framework.

For example, an implementation of this interface might support javax.servlet, javax.portlet, or some other mechanism.

Version:
$Revision: 887436 $ $Date: 2009-12-04 16:11:25 -0700 (Fri, 04 Dec 2009) $
Author:
Mathias Broekelmann (latest modification by $Author: lu4242 $)

Method Summary
 java.lang.String calculateActionURL(javax.faces.context.FacesContext facesContext, java.lang.String viewId)
          Return a string containing a webapp-relative URL that the user can invoke to render the specified view.
 java.lang.String calculateAndCheckViewId(javax.faces.context.FacesContext context, java.lang.String viewId)
           
 java.lang.String calculateViewId(javax.faces.context.FacesContext context, java.lang.String viewId)
           
 

Method Detail

calculateViewId

java.lang.String calculateViewId(javax.faces.context.FacesContext context,
                                 java.lang.String viewId)

calculateAndCheckViewId

java.lang.String calculateAndCheckViewId(javax.faces.context.FacesContext context,
                                         java.lang.String viewId)

calculateActionURL

java.lang.String calculateActionURL(javax.faces.context.FacesContext facesContext,
                                    java.lang.String viewId)
Return a string containing a webapp-relative URL that the user can invoke to render the specified view.

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".



Copyright © 2011 The Apache Software Foundation. All Rights Reserved.