| java.lang.Object com.sun.rave.web.ui.appbase.FacesBean com.sun.rave.web.ui.appbase.AbstractFragmentBean
All known Subclasses: vehicleincidentreportapplication.Footer, vehicleincidentreportapplication.Header, travelcenter.Header, twopagecrudtable.Masthead, singlepagecrudtable.Masthead, movieadmin.Masthead, singlepagecrudform.Masthead,
AbstractFragmentBean | abstract public class AbstractFragmentBean extends FacesBean (Code) | | 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:
- init() - Called whenever you navigate to a page
containing this page fragment, either directly (via a URL) or indirectly
via page navigation from a different page. You can override this
method to acquire any resources that will always be needed by this
page fragment.
- destroy() - Called unconditionally if
init() was called, after completion of rendering by
whichever page was actually rendered. Override this method to release
any resources allocated in the init() method,
or in an event handler.
|
Method Summary | |
public void | destroy() Callback method that is called after rendering is completed for
this request, if init() was called. | 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. |
AbstractFragmentBean | public AbstractFragmentBean()(Code) | | Construct a new instance of this bean.
|
destroy | public void destroy()(Code) | | 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.
|
init | public void init()(Code) | | 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.
|
|
|