| java.lang.Object com.sun.rave.web.ui.appbase.FacesBean com.sun.rave.web.ui.appbase.AbstractPageBean
All known Subclasses: vehicleincidentreportapplication.AddVehicle, vehicleincidentreportapplication.FindVehicle, vehicleincidentreportapplication.ReportIncident, singlepagecrudform.Page1, vehicleincidentreportapplication.Help, twopagecrudtable.CreatePage, movieadmin.Preview, travelcenter.Details, travelcenter.Help, vehicleincidentreportapplication.ChooseVehicle, twopagecrudtable.Page1, twopagecrudtable.UpdatePage, vehicleincidentreportapplication.Vehicles, vehicleincidentreportapplication.NewUser, vehicleincidentreportapplication.IncidentReported, vehicleincidentreportapplication.Login, singlepagecrudtable.Page1, vehicleincidentreportapplication.Profile, travelcenter.Page1, movieadmin.Page1,
AbstractPageBean | abstract public class AbstractPageBean extends FacesBean (Code) | | AbstractPageBean is the abstract base class for every
page bean associated with a JSP page 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 the
corresponding JSP page, 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.
- preprocess() - If this request is a postback (i.e.
your page is about to process an incoming form submit, this method
will be called after the original component tree has been restored,
but before any standard JavaServer Faces event processing is done
(i.e. this is called before Apply Request Values phase of
the request processing lifecycle). Override this method to acquire
any resources that will be needed by event handlers (such as action
methods, validator methods, or value change listener methods) that
will be executed while executing the request processing lifecycle.
- prerender() - If this page is the one that will be
rendering the response, this method is called after any event
processing, but before the actual rendering. Override this method to
acquire resources that are only needed when a page is being rendered.
- 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() ,
preprocess() , or prerender()
methods (or in an event handler).
For advanced users, and as a carry forward from previous versions of
Sun Java Studio Creator, page bean instances are also registered
automatically as a JavaServer Faces PhaseListener . For each
lifecycle phase, there is an appropriate "before" and "after" event method,
which you can override to provide phase-specific behavior. For example,
if you wanted to provide some special logic that happened before or after
the Update Model Values phase, you would override one of the methods:
public void beforeUpdateModelValues();
public void afterUpdateModelValues();
|
Method Summary | |
protected void | afterApplyRequestValues() | protected void | afterInvokeApplication() | public void | afterPhase(PhaseEvent event) | protected void | afterProcessValidations() | protected void | afterRenderResponse() | protected void | afterRestoreView() | protected void | afterUpdateModelValues() | protected void | beforeApplyRequestValues() | protected void | beforeInvokeApplication() | public void | beforePhase(PhaseEvent event) | protected void | beforeProcessValidations() | protected void | beforeRenderResponse() | protected void | beforeRestoreView() | protected void | beforeUpdateModelValues() | public void | destroy() Callback method that is called after rendering is completed for
this request, if init() was called, regardless of whether
or not this was the page that was actually rendered. | public void | init() Callback method that is called whenever a page is navigated to,
either directly via a URL, or indirectly via page navigation. | protected boolean | isPostBack() Return true if the current request was a post back
for an existing view, rather than the creation of a new view. | public void | preprocess() Callback method that is called after the component tree has been
restored, but before any event processing takes place. | public void | prerender() Callback method that is called just before rendering takes place.
This method will only be called for the page that
will actually be rendered (and not, for example, on a page that
handled a post back and then navigated to a different page). | protected void | renderResponse() Skip any remaining request processing lifecycle phases for the
current request, and go immediately to Render Response
phase. | protected void | responseComplete() Skip any remaining request processing lifecycle phases for the
current request, including Render Response phase. |
AbstractPageBean | public AbstractPageBean()(Code) | | Construct a new instance of this bean.
|
afterApplyRequestValues | protected void afterApplyRequestValues()(Code) | | |
afterInvokeApplication | protected void afterInvokeApplication()(Code) | | |
afterPhase | public void afterPhase(PhaseEvent event)(Code) | | Call through to the appropriate "after event" method,
depending upon the PhaseId in this event.
Parameters: event - PhaseEvent to be processed |
afterProcessValidations | protected void afterProcessValidations()(Code) | | |
afterRenderResponse | protected void afterRenderResponse()(Code) | | |
afterRestoreView | protected void afterRestoreView()(Code) | | |
afterUpdateModelValues | protected void afterUpdateModelValues()(Code) | | |
beforeApplyRequestValues | protected void beforeApplyRequestValues()(Code) | | |
beforeInvokeApplication | protected void beforeInvokeApplication()(Code) | | |
beforePhase | public void beforePhase(PhaseEvent event)(Code) | | Call through to the appropriate "before event" method,
depending upon the PhaseId in this event.
Parameters: event - PhaseEvent to be processed |
beforeProcessValidations | protected void beforeProcessValidations()(Code) | | |
beforeRenderResponse | protected void beforeRenderResponse()(Code) | | |
beforeRestoreView | protected void beforeRestoreView()(Code) | | |
beforeUpdateModelValues | protected void beforeUpdateModelValues()(Code) | | |
destroy | public void destroy()(Code) | | Callback method that is called after rendering is completed for
this request, if init() was called, regardless of whether
or not this was the page that was actually rendered. Override this
method to release resources acquired in the init() ,
preprocess() , or prerender() methods (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 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, whether or not this
page is performing post back processing.
The default implementation does nothing.
|
isPostBack | protected boolean isPostBack()(Code) | | Return true if the current request was a post back
for an existing view, rather than the creation of a new view. The
result of this method may be used to conditionally execute one time
setup that is only required when a page is first displayed.
|
preprocess | public void preprocess()(Code) | | Callback method that is called after the component tree has been
restored, but before any event processing takes place. This method
will only be called on a "post back" request that
is processing a form submit. Override this method to allocate
resources that will be required in your event handlers.
The default implementation does nothing.
|
prerender | public void prerender()(Code) | | Callback method that is called just before rendering takes place.
This method will only be called for the page that
will actually be rendered (and not, for example, on a page that
handled a post back and then navigated to a different page). Override
this method to allocate resources that will be required for rendering
this page.
The default implementation does nothing.
|
renderResponse | protected void renderResponse()(Code) | | Skip any remaining request processing lifecycle phases for the
current request, and go immediately to Render Response
phase. This method is typically invoked when you want to throw
away input values provided by the user, instead of processing them.
|
responseComplete | protected void responseComplete()(Code) | | Skip any remaining request processing lifecycle phases for the
current request, including Render Response phase. This is
appropriate if you have completed the response through some means
other than JavaServer Faces rendering.
|
|
|