org.apache.myfaces.application
Interface ViewHandlerSupport

All Known Implementing Classes:
DefaultViewHandlerSupport

public interface ViewHandlerSupport

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: 589835 $ $Date: 2007-10-29 15:10:36 -0500 (Mon, 29 Oct 2007) $
Author:
Mathias Broekelmann (latest modification by $Author: skitching $)

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 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)

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 © 2012 The Apache Software Foundation. All Rights Reserved.