com.sun.rave.web.ui.appbase
Class AbstractFragmentBean

java.lang.Object
  extended by com.sun.rave.web.ui.appbase.FacesBean
      extended by com.sun.rave.web.ui.appbase.AbstractFragmentBean

public abstract class AbstractFragmentBean
extends FacesBean

AbstractFragmentBean is the abstract base class for every page bean associated with a JSP page fragment containing JavaServer Faces components. It extends FacesBean, so it inherits all of the default integration behavior found there.

In addition to event handler methods that you create while building your application, the runtime environment will also call the following lifecycle related methods at appropriate points during the execution of your application:


Constructor Summary
AbstractFragmentBean()
          Construct a new instance of this bean.
 
Method Summary
 void destroy()
          Callback method that is called after rendering is completed for this request, if init() was called.
 void init()
          Callback method that is called whenever a page containing this page fragment is navigated to, either directly via a URL, or indirectly via page navigation.
 
Methods inherited from class com.sun.rave.web.ui.appbase.FacesBean
erase, error, error, fatal, fatal, getApplication, getApplicationMap, getBean, getCachedExceptions, getContext, getExternalContext, getFacesContext, getLifecycle, getRequestMap, getSessionMap, getValue, info, info, log, log, retrieveData, saveData, setBean, setValue, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFragmentBean

public AbstractFragmentBean()

Construct a new instance of this bean.

Method Detail

init

public void init()

Callback method that is called whenever a page containing this page fragment is navigated to, either directly via a URL, or indirectly via page navigation. Override this method to acquire resources that will be needed for event handlers and lifecycle methods.

The default implementation does nothing.


destroy

public void destroy()

Callback method that is called after rendering is completed for this request, if init() was called. Override this method to release resources acquired in the init() method (or acquired during execution of an event handler).

The default implementation does nothing.