|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.view.ViewDeclarationLanguage
org.apache.myfaces.shared_impl.view.ViewDeclarationLanguageBase
org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage
public class FaceletViewDeclarationLanguage
This class represents the abstraction of Facelets as a ViewDeclarationLanguage.
Field Summary | |
---|---|
static java.lang.String |
BUILDING_VIEW_METADATA
|
static java.lang.String |
CHARACTER_ENCODING_KEY
|
static java.lang.String |
CLEAN_TRANSIENT_BUILD_ON_RESTORE
|
static java.lang.String |
DEFAULT_CHARACTER_ENCODING
|
static long |
DEFAULT_REFRESH_PERIOD
|
static long |
DEFAULT_REFRESH_PERIOD_PRODUCTION
|
static java.lang.String |
FILLED_VIEW
|
static java.lang.String |
MARK_INITIAL_STATE_KEY
Marker to indicate tag handlers the view currently being built is using partial state saving and it is necessary to call UIComponent.markInitialState after component instances are populated. |
static java.lang.String |
PARAM_BUFFER_SIZE
|
static java.lang.String |
PARAM_DECORATORS
|
static java.lang.String |
PARAM_ENCODING
Constant used by EncodingHandler to indicate the current encoding of the page being built, and indicate which one is the response encoding on getResponseEncoding(FacesContext, String) method. |
static java.lang.String |
PARAM_LIBRARIES
|
static java.lang.String |
PARAM_REFRESH_PERIOD
|
static java.lang.String |
PARAM_RESOURCE_RESOLVER
|
static java.lang.String |
PARAM_SKIP_COMMENTS
|
static java.lang.String |
REFRESH_TRANSIENT_BUILD_ON_PSS
|
static java.lang.String |
REFRESHING_TRANSIENT_BUILD
|
static java.lang.String |
REMOVING_COMPONENTS_BUILD
|
static java.lang.String |
USING_PSS_ON_THIS_VIEW
|
Constructor Summary | |
---|---|
FaceletViewDeclarationLanguage(javax.faces.context.FacesContext context)
|
Method Summary | |
---|---|
static java.lang.Class |
_javaTypeToClass(java.lang.String type)
This method is similar to shared ClassUtils.javaTypeToClass, but the default package is java.lang TODO: Move to shared project |
static void |
_publishPostBuildComponentTreeOnRestoreViewEvent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
void |
buildView(javax.faces.context.FacesContext context,
javax.faces.component.UIViewRoot view)
|
protected java.lang.String |
calculateViewId(javax.faces.context.FacesContext context,
java.lang.String viewId)
Calculates the effective view identifier for the specified raw view identifier. |
static void |
cleanTransientBuildOnRestore(javax.faces.context.FacesContext context)
|
protected Compiler |
createCompiler(javax.faces.context.FacesContext context)
Creates the Facelet page compiler. |
protected FaceletFactory |
createFaceletFactory(javax.faces.context.FacesContext context,
Compiler compiler)
Creates a FaceletFactory instance using the specified compiler. |
protected javax.faces.context.ResponseWriter |
createResponseWriter(javax.faces.context.FacesContext context)
|
javax.faces.component.UIViewRoot |
createView(javax.faces.context.FacesContext context,
java.lang.String viewId)
Process the specification required algorithm that is generic to all PDL. |
java.beans.BeanInfo |
getComponentMetadata(javax.faces.context.FacesContext context,
javax.faces.application.Resource componentResource)
retargetMethodExpressions(FacesContext, UIComponent) has some clues about the behavior of this method |
protected java.lang.String |
getDefaultSuffix(javax.faces.context.FacesContext context)
Deprecated. this code is not used anymore |
protected java.lang.String |
getRenderedViewId(javax.faces.context.FacesContext context,
java.lang.String actionId)
Deprecated. |
protected java.lang.String |
getResponseContentType(javax.faces.context.FacesContext context,
java.lang.String orig)
Generate the content type |
protected java.lang.String |
getResponseEncoding(javax.faces.context.FacesContext context,
java.lang.String orig)
Generate the encoding |
javax.faces.application.Resource |
getScriptComponentResource(javax.faces.context.FacesContext context,
javax.faces.application.Resource componentResource)
|
javax.faces.view.StateManagementStrategy |
getStateManagementStrategy(javax.faces.context.FacesContext context,
java.lang.String viewId)
|
javax.faces.view.ViewMetadata |
getViewMetadata(javax.faces.context.FacesContext context,
java.lang.String viewId)
|
protected void |
handleFaceletNotFound(javax.faces.context.FacesContext context,
java.lang.String viewId)
|
protected void |
handleRenderException(javax.faces.context.FacesContext context,
java.lang.Exception e)
|
protected void |
initialize(javax.faces.context.FacesContext context)
Initialize the ViewHandler during its first request. |
static boolean |
isBuildingViewMetadata(javax.faces.context.FacesContext context)
Check if the current facelet applied is used to build view metadata. |
static boolean |
isCleanTransientBuildOnRestore(javax.faces.context.FacesContext context)
|
static boolean |
isMarkInitialState(javax.faces.context.FacesContext context)
|
static boolean |
isRefreshingTransientBuild(javax.faces.context.FacesContext context)
|
static boolean |
isRefreshTransientBuildOnPSS(javax.faces.context.FacesContext context)
|
static boolean |
isRefreshTransientBuildOnPSSAuto(javax.faces.context.FacesContext context)
|
static boolean |
isRemovingComponentBuild(javax.faces.context.FacesContext context)
|
static boolean |
isUsingPSSOnThisView(javax.faces.context.FacesContext context)
|
protected void |
loadDecorators(javax.faces.context.FacesContext context,
Compiler compiler)
Load the various decorators for Facelets. |
protected void |
loadLibraries(javax.faces.context.FacesContext context,
Compiler compiler)
Load the various tag libraries for Facelets. |
protected void |
loadOptions(javax.faces.context.FacesContext context,
Compiler compiler)
Load the various options for Facelets compiler. |
void |
renderView(javax.faces.context.FacesContext context,
javax.faces.component.UIViewRoot view)
|
javax.faces.component.UIViewRoot |
restoreView(javax.faces.context.FacesContext context,
java.lang.String viewId)
|
void |
retargetAttachedObjects(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent topLevelComponent,
java.util.List<javax.faces.view.AttachedObjectHandler> handlerList)
In short words, this method take care of "target" an "attached object". |
void |
retargetMethodExpressions(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent topLevelComponent)
|
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.ViewDeclarationLanguageBase |
---|
checkNull |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CHARACTER_ENCODING_KEY
public static final long DEFAULT_REFRESH_PERIOD
public static final long DEFAULT_REFRESH_PERIOD_PRODUCTION
public static final java.lang.String DEFAULT_CHARACTER_ENCODING
@JSFWebConfigParam(since="2.0") public static final java.lang.String PARAM_BUFFER_SIZE
@JSFWebConfigParam(since="2.0") public static final java.lang.String PARAM_DECORATORS
public static final java.lang.String PARAM_ENCODING
@JSFWebConfigParam(since="2.0") public static final java.lang.String PARAM_LIBRARIES
@JSFWebConfigParam(since="2.0") public static final java.lang.String PARAM_REFRESH_PERIOD
@JSFWebConfigParam(since="2.0") public static final java.lang.String PARAM_RESOURCE_RESOLVER
@JSFWebConfigParam(since="2.0") public static final java.lang.String PARAM_SKIP_COMMENTS
public static final java.lang.String FILLED_VIEW
public static final java.lang.String BUILDING_VIEW_METADATA
public static final java.lang.String REFRESHING_TRANSIENT_BUILD
public static final java.lang.String REFRESH_TRANSIENT_BUILD_ON_PSS
public static final java.lang.String USING_PSS_ON_THIS_VIEW
public static final java.lang.String REMOVING_COMPONENTS_BUILD
public static final java.lang.String MARK_INITIAL_STATE_KEY
public static final java.lang.String CLEAN_TRANSIENT_BUILD_ON_RESTORE
Constructor Detail |
---|
public FaceletViewDeclarationLanguage(javax.faces.context.FacesContext context)
Method Detail |
---|
public void buildView(javax.faces.context.FacesContext context, javax.faces.component.UIViewRoot view) throws java.io.IOException
buildView
in class javax.faces.view.ViewDeclarationLanguage
java.io.IOException
public static void _publishPostBuildComponentTreeOnRestoreViewEvent(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
public java.beans.BeanInfo getComponentMetadata(javax.faces.context.FacesContext context, javax.faces.application.Resource componentResource)
getComponentMetadata
in class javax.faces.view.ViewDeclarationLanguage
public static boolean isBuildingViewMetadata(javax.faces.context.FacesContext context)
context
-
public static boolean isRefreshingTransientBuild(javax.faces.context.FacesContext context)
public static boolean isRemovingComponentBuild(javax.faces.context.FacesContext context)
public static boolean isMarkInitialState(javax.faces.context.FacesContext context)
public static boolean isRefreshTransientBuildOnPSS(javax.faces.context.FacesContext context)
public static boolean isRefreshTransientBuildOnPSSAuto(javax.faces.context.FacesContext context)
public static boolean isCleanTransientBuildOnRestore(javax.faces.context.FacesContext context)
public static void cleanTransientBuildOnRestore(javax.faces.context.FacesContext context)
public static boolean isUsingPSSOnThisView(javax.faces.context.FacesContext context)
public void retargetAttachedObjects(javax.faces.context.FacesContext context, javax.faces.component.UIComponent topLevelComponent, java.util.List<javax.faces.view.AttachedObjectHandler> handlerList)
retargetAttachedObjects
in class javax.faces.view.ViewDeclarationLanguage
public void retargetMethodExpressions(javax.faces.context.FacesContext context, javax.faces.component.UIComponent topLevelComponent)
retargetMethodExpressions
in class javax.faces.view.ViewDeclarationLanguage
public static java.lang.Class _javaTypeToClass(java.lang.String type) throws java.lang.ClassNotFoundException
type
-
java.lang.ClassNotFoundException
public javax.faces.application.Resource getScriptComponentResource(javax.faces.context.FacesContext context, javax.faces.application.Resource componentResource)
getScriptComponentResource
in class javax.faces.view.ViewDeclarationLanguage
public javax.faces.view.StateManagementStrategy getStateManagementStrategy(javax.faces.context.FacesContext context, java.lang.String viewId)
getStateManagementStrategy
in class javax.faces.view.ViewDeclarationLanguage
public javax.faces.view.ViewMetadata getViewMetadata(javax.faces.context.FacesContext context, java.lang.String viewId)
getViewMetadata
in class javax.faces.view.ViewDeclarationLanguage
public void renderView(javax.faces.context.FacesContext context, javax.faces.component.UIViewRoot view) throws java.io.IOException
renderView
in class javax.faces.view.ViewDeclarationLanguage
java.io.IOException
public javax.faces.component.UIViewRoot createView(javax.faces.context.FacesContext context, java.lang.String viewId)
createView
in class ViewDeclarationLanguageBase
public javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext context, java.lang.String viewId)
restoreView
in class ViewDeclarationLanguageBase
protected java.lang.String calculateViewId(javax.faces.context.FacesContext context, java.lang.String viewId)
calculateViewId
in class ViewDeclarationLanguageBase
context
- le current FacesContextviewId
- the raw view identifier
protected Compiler createCompiler(javax.faces.context.FacesContext context)
context
- the current FacesContext
protected FaceletFactory createFaceletFactory(javax.faces.context.FacesContext context, Compiler compiler)
context
- the current FacesContextcompiler
- the compiler to be used by the factory
protected javax.faces.context.ResponseWriter createResponseWriter(javax.faces.context.FacesContext context) throws java.io.IOException, javax.faces.FacesException
java.io.IOException
javax.faces.FacesException
@Deprecated protected java.lang.String getDefaultSuffix(javax.faces.context.FacesContext context) throws javax.faces.FacesException
javax.faces.FacesException
@Deprecated protected java.lang.String getRenderedViewId(javax.faces.context.FacesContext context, java.lang.String actionId)
protected java.lang.String getResponseContentType(javax.faces.context.FacesContext context, java.lang.String orig)
context
- orig
-
protected java.lang.String getResponseEncoding(javax.faces.context.FacesContext context, java.lang.String orig)
context
- orig
-
protected void handleFaceletNotFound(javax.faces.context.FacesContext context, java.lang.String viewId) throws javax.faces.FacesException, java.io.IOException
javax.faces.FacesException
java.io.IOException
protected void handleRenderException(javax.faces.context.FacesContext context, java.lang.Exception e) throws java.io.IOException, javax.el.ELException, javax.faces.FacesException
java.io.IOException
javax.el.ELException
javax.faces.FacesException
protected void initialize(javax.faces.context.FacesContext context)
protected void loadDecorators(javax.faces.context.FacesContext context, Compiler compiler)
context
- the current FacesContextcompiler
- the page compilerprotected void loadLibraries(javax.faces.context.FacesContext context, Compiler compiler)
context
- the current FacesContextcompiler
- the page compilerprotected void loadOptions(javax.faces.context.FacesContext context, Compiler compiler)
context
- the current FacesContextcompiler
- the page compilerprotected void sendSourceNotFound(javax.faces.context.FacesContext context, java.lang.String message)
sendSourceNotFound
in class ViewDeclarationLanguageBase
context
- le current FacesContextmessage
- the message associated with the error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |