org.apache.myfaces.view.jsp
Class JspViewDeclarationLanguage

java.lang.Object
  extended by javax.faces.view.ViewDeclarationLanguage
      extended by org.apache.myfaces.view.ViewDeclarationLanguageBase
          extended by org.apache.myfaces.view.jsp.JspViewDeclarationLanguage

public class JspViewDeclarationLanguage
extends ViewDeclarationLanguageBase

Since:
2.0
Version:
$Revision: 696523 $ $Date: 2009-03-22 13:55:12 -0400 (mer., 17 sept. 2008) $
Author:
Simon Lessard (latest modification by $Author: slessard $)

Field Summary
static java.lang.String FORM_STATE_MARKER
           
static int FORM_STATE_MARKER_LEN
           
 
Constructor Summary
JspViewDeclarationLanguage()
           
 
Method Summary
 void buildView(FacesContext context, UIViewRoot view)
          
protected  java.lang.String calculateViewId(FacesContext context, java.lang.String viewId)
          Calculates the effective view identifier for the specified raw view identifier.
 java.beans.BeanInfo getComponentMetadata(FacesContext context, Resource componentResource)
          
 Resource getScriptComponentResource(FacesContext context, Resource componentResource)
          
 StateManagementStrategy getStateManagementStrategy(FacesContext context, java.lang.String viewId)
           
 ViewMetadata getViewMetadata(FacesContext context, java.lang.String viewId)
          
 void renderView(FacesContext context, UIViewRoot view)
          
protected  void sendSourceNotFound(FacesContext context, java.lang.String message)
          Send a source not found to the client.
 
Methods inherited from class org.apache.myfaces.view.ViewDeclarationLanguageBase
checkNull, createView, restoreView
 
Methods inherited from class javax.faces.view.ViewDeclarationLanguage
retargetAttachedObjects, retargetMethodExpressions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORM_STATE_MARKER

public static final java.lang.String FORM_STATE_MARKER
See Also:
Constant Field Values

FORM_STATE_MARKER_LEN

public static final int FORM_STATE_MARKER_LEN
Constructor Detail

JspViewDeclarationLanguage

public JspViewDeclarationLanguage()
Method Detail

buildView

public void buildView(FacesContext context,
                      UIViewRoot view)
               throws java.io.IOException

Specified by:
buildView in class ViewDeclarationLanguage
Throws:
java.io.IOException

getComponentMetadata

public java.beans.BeanInfo getComponentMetadata(FacesContext context,
                                                Resource componentResource)

Specified by:
getComponentMetadata in class ViewDeclarationLanguage

getScriptComponentResource

public Resource getScriptComponentResource(FacesContext context,
                                           Resource componentResource)

Specified by:
getScriptComponentResource in class ViewDeclarationLanguage

getViewMetadata

public ViewMetadata getViewMetadata(FacesContext context,
                                    java.lang.String viewId)

Specified by:
getViewMetadata in class ViewDeclarationLanguage

renderView

public void renderView(FacesContext context,
                       UIViewRoot view)
                throws java.io.IOException

Specified by:
renderView in class ViewDeclarationLanguage
Throws:
java.io.IOException

calculateViewId

protected java.lang.String calculateViewId(FacesContext context,
                                           java.lang.String viewId)
Description copied from class: ViewDeclarationLanguageBase
Calculates the effective view identifier for the specified raw view identifier.

Specified by:
calculateViewId in class ViewDeclarationLanguageBase
Parameters:
context - le current FacesContext
viewId - the raw view identifier
Returns:
the effective view identifier

sendSourceNotFound

protected void sendSourceNotFound(FacesContext context,
                                  java.lang.String message)
Description copied from class: ViewDeclarationLanguageBase
Send a source not found to the client. Although it can be considered ok in JSP mode, I think it's pretty lame to have this kind of requirement at VDL level considering VDL represents the page --> JSF tree link, not the transport layer required to send a SC_NOT_FOUND.

Specified by:
sendSourceNotFound in class ViewDeclarationLanguageBase
Parameters:
context - le current FacesContext
message - the message associated with the error

getStateManagementStrategy

public StateManagementStrategy getStateManagementStrategy(FacesContext context,
                                                          java.lang.String viewId)
Specified by:
getStateManagementStrategy in class ViewDeclarationLanguage


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