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
 String calculateActionURL(FacesContext facesContext, String viewId)
          Return a string containing a webapp-relative URL that the user can invoke to render the specified view.
 String calculateViewId(FacesContext context, String viewId)
           
 

Method Detail

calculateViewId

String calculateViewId(FacesContext context,
                       String viewId)

calculateActionURL

String calculateActionURL(FacesContext facesContext,
                          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.