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: 934133 $ $Date: 2010-04-14 14:17:14 -0500 (Wed, 14 Apr 2010) $
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
           
 
Constructor Summary
JspViewDeclarationLanguage()
           
 
Method Summary
 void buildView(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.shared_impl.view.JspViewDeclarationLanguageBase
calculateViewId, flushBufferToWriter, getComponentMetadata, getScriptComponentResource, getStateManagementStrategy, getViewMetadata, renderView, setAfterViewTagResponseWrapper, 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
 
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(FacesContext context,
                      UIViewRoot view)
               throws java.io.IOException

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

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


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