Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 2 (11.1.2.0.0)
E17488-01


oracle.adf.view.rich.model
Class PageTemplateModel

java.lang.Object
  extended by oracle.adf.view.rich.model.PageTemplateModel


public abstract class PageTemplateModel
extends java.lang.Object

Controlling bean of a page template. Provides the view ID of the page template and may react to the context setup and tear down of the component.

If the value attribute of the <af:pageTemplate /> is given, and is an instance of this class, the view ID will be retrieved from this class and it will be notified of setup and tear down changes of the template context.


Constructor Summary
PageTemplateModel()
           

 

Method Summary
abstract  java.lang.String getViewId(javax.faces.context.FacesContext facesContext)
          Retrieve the view ID of the page template.
 void setupContext(javax.faces.context.FacesContext facesContext, PageTemplateSite templateSite)
          Perform any contextual setup of the page template when the page template is processing its content.
 void tearDownContext(javax.faces.context.FacesContext facesContext, PageTemplateSite templateSite)
          Perform any contextual tear down of the page template when the page template is leaving its content.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

PageTemplateModel

public PageTemplateModel()

Method Detail

setupContext

public void setupContext(javax.faces.context.FacesContext facesContext,
                         PageTemplateSite templateSite)
Perform any contextual setup of the page template when the page template is processing its content.

This is called before each JSF phase method begins on the component and after any invokeOnComponent call.

Parameters:
facesContext - the faces context
templateSite - provides access to site-specific information and services. The site object is only valid between setupContext and tearDownContext

tearDownContext

public void tearDownContext(javax.faces.context.FacesContext facesContext,
                            PageTemplateSite templateSite)
Perform any contextual tear down of the page template when the page template is leaving its content.

This is called after each JSF phase method ends on the component and before any invokeOnComponent call.

Parameters:
facesContext - the faces context
templateSite - provides access to site-specific information and services. The site object is only valid between setupContext and tearDownContext. The value passed is the same instance that was passed to the setupContext(javax.faces.context.FacesContext, oracle.adf.view.rich.component.fragment.PageTemplateSite) method

getViewId

public abstract java.lang.String getViewId(javax.faces.context.FacesContext facesContext)
Retrieve the view ID of the page template.

This is called by the JSP tag or include handler of the page template to retrieve the view ID to be used to include. It may be called at other times but only for informational purposes.

This value should only be changed during the invoke application phase or before the rendering phase. It should return the same value during rendering as during restoring of the view during subsequent requests.

Parameters:
facesContext - the faces context

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 2 (11.1.2.0.0)
E17488-01


Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved.