|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidad.render.InternalView
public abstract class InternalView
An InternalView is a view ID that is handled internally to the webapp, without (necessarily) dispatching to an external resource. This can also be used to register pseudo-URLs that
InternalViews should be registered with a .properties-syntax file at
/META-INF/org.apache.myfaces.trinidad.render.InternalView.properties
Constructor Summary | |
---|---|
InternalView()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InternalView()
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |