public abstract class AbstractViewController extends AbstractFacesBean implements ViewController
AbstractViewController
is a convenience base implementation of
ViewController
. It also provides convenience methods inherited
from AbstractFacesBean
to all of its subclasses.
Constructor and Description |
---|
AbstractViewController()
Pre-initialize the
postBack property appropriately
if we can. |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
The default implementation does nothing.
|
void |
init()
The default implementation does nothing.
|
boolean |
isPostBack()
Return a flag indicating whether this request is a "post back" (that
is, the view was restored in order to respond to a submit from the
client), or a newly created view.
|
void |
preprocess()
The default implementation does nothing.
|
void |
prerender()
The default implementation does nothing.
|
void |
setPostBack(boolean postBack)
Set a flag indicating whether this request is a "post back" (that is,
the view was restored in order to respond to a submit from the client),
or a newly created view.
|
erase, error, error, fatal, fatal, getApplication, getApplicationMap, getBean, getExternalContext, getFacesContext, getLifecycle, getRequestHeaderMap, getRequestMap, getRequestParameter, getRequestParameterMap, getRequestParameterValues, getSessionMap, getValue, info, info, log, log, retrieveData, saveData, setBean, setValue, warn, warn
public AbstractViewController()
Pre-initialize the postBack
property appropriately
if we can.
public boolean isPostBack()
Return a flag indicating whether this request is a "post back" (that
is, the view was restored in order to respond to a submit from the
client), or a newly created view. This method must return any value
passed to the setPostBack()
method.
isPostBack
in interface ViewController
public void setPostBack(boolean postBack)
Set a flag indicating whether this request is a "post back" (that is, the view was restored in order to respond to a submit from the client), or a newly created view.
setPostBack
in interface ViewController
postBack
- true
for a post back request, or
false
for a newly created requestpublic void destroy()
The default implementation does nothing.
destroy
in interface ViewController
public void init()
The default implementation does nothing.
init
in interface ViewController
public void preprocess()
The default implementation does nothing.
preprocess
in interface ViewController
public void prerender()
The default implementation does nothing.
prerender
in interface ViewController
Copyright © 2004-2013 Apache Software Foundation. All Rights Reserved.