org.apache.myfaces.view.jsp
Class JspViewDeclarationLanguage

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

public class JspViewDeclarationLanguage
extends JspViewDeclarationLanguageBase

Since:
2.0
Version:
$Revision: 1102937 $ $Date: 2011-05-13 20:06:02 -0500 (Fri, 13 May 2011) $
Author:
Simon Lessard (latest modification by $Author: lu4242 $)

Field Summary
static java.lang.String[] FACELETS_ONLY_F_TAGS
          Tags that are only available on facelets and not on JSP.
static java.lang.String[] FACELETS_ONLY_H_TAGS
           
static java.util.logging.Logger log
           
 
Fields inherited from class javax.faces.view.ViewDeclarationLanguage
FACELETS_VIEW_DECLARATION_LANGUAGE_ID, JSP_VIEW_DECLARATION_LANGUAGE_ID
 
Constructor Summary
JspViewDeclarationLanguage()
           
 
Method Summary
 void buildView(javax.faces.context.FacesContext context, javax.faces.component.UIViewRoot view)
          
protected  boolean isViewStateAlreadyEncoded(javax.faces.context.FacesContext context)
           
protected  void sendSourceNotFound(javax.faces.context.FacesContext context, java.lang.String message)
          Send a source not found to the client.
 
Methods inherited from class org.apache.myfaces.shared_impl.view.JspViewDeclarationLanguageBase
actuallyRenderView, calculateViewId, flushBufferToWriter, getComponentMetadata, getId, getScriptComponentResource, getStateManagementStrategy, getViewMetadata, isViewBuilt, renderView, setAfterViewTagResponseWrapper, setViewBuilt, writePartialBuffer
 
Methods inherited from class org.apache.myfaces.shared_impl.view.ViewDeclarationLanguageBase
checkNull, createView, restoreView
 
Methods inherited from class javax.faces.view.ViewDeclarationLanguage
retargetAttachedObjects, retargetMethodExpressions, viewExists
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static final java.util.logging.Logger log

FACELETS_ONLY_F_TAGS

public static final java.lang.String[] FACELETS_ONLY_F_TAGS
Tags that are only available on facelets and not on JSP. If a user uses one of these tags on a JSP, we will provide a more informative error message than the standard one.


FACELETS_ONLY_H_TAGS

public static final java.lang.String[] FACELETS_ONLY_H_TAGS
Constructor Detail

JspViewDeclarationLanguage

public JspViewDeclarationLanguage()
Method Detail

buildView

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

Overrides:
buildView in class JspViewDeclarationLanguageBase
Throws:
java.io.IOException

isViewStateAlreadyEncoded

protected boolean isViewStateAlreadyEncoded(javax.faces.context.FacesContext context)
Overrides:
isViewStateAlreadyEncoded in class JspViewDeclarationLanguageBase

sendSourceNotFound

protected void sendSourceNotFound(javax.faces.context.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


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