public abstract class InternalView extends Object
InternalViews should be registered with a .properties-syntax file at
/META-INF/org.apache.myfaces.trinidad.render.InternalView.properties
Constructor and Description |
---|
InternalView() |
Modifier and Type | Method and Description |
---|---|
abstract javax.faces.component.UIViewRoot |
createView(javax.faces.context.FacesContext context,
String viewId)
Creates the UIViewRoot.
|
boolean |
isStateless(javax.faces.context.FacesContext context,
String viewId)
Return true if this view is stateless; which, by default, it is.
|
abstract void |
renderView(javax.faces.context.FacesContext context,
javax.faces.component.UIViewRoot viewToRender)
Renders the view.
|
abstract javax.faces.component.UIViewRoot |
restoreView(javax.faces.context.FacesContext context,
String viewId)
Restores the UIViewRoot; return null if no view should be returned.
|
public abstract javax.faces.component.UIViewRoot createView(javax.faces.context.FacesContext context, String viewId)
Unlike ViewHandler.createView(), null is an acceptable return value - it indicates that a default, empty UIViewRoot for this viewId should be created on behalf of the InternalView, which might populate the view during renderView().
public abstract javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext context, String viewId)
public abstract void renderView(javax.faces.context.FacesContext context, javax.faces.component.UIViewRoot viewToRender) throws IOException, javax.faces.FacesException
IOException
javax.faces.FacesException
public boolean isStateless(javax.faces.context.FacesContext context, String viewId)
Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.