| java.lang.Object com.sun.jsfcl.app.FacesBean
All known Subclasses: com.sun.jsfcl.app.AbstractPageBean, com.sun.jsfcl.app.AbstractRequestBean, com.sun.jsfcl.app.AbstractSessionBean, com.sun.jsfcl.app.AbstractApplicationBean,
FacesBean | abstract public class FacesBean implements PhaseListener(Code) | | FacesBean is the abstract base class for all page beans,
session scope data beans, and application scope data beans that wish to
participate in the request processing lifecycle. Concrete subclasses of
this class will typically be registered as managed beans, so that they get
created on demand (and added to the relevant scope's attributes).
|
Method Summary | |
protected void | afterApplyRequestValues() | protected void | afterInvokeApplication() | public void | afterPhase(PhaseEvent phaseEvent) | protected void | afterProcessValidations() | protected void | afterRenderResponse() | protected void | afterRestoreView() | protected void | afterUpdateModelValues() | protected void | beforeApplyRequestValues() | protected void | beforeInvokeApplication() | public void | beforePhase(PhaseEvent phaseEvent) | protected void | beforeProcessValidations() | protected void | beforeRenderResponse() | protected void | beforeRestoreView() | protected void | beforeUpdateModelValues() | protected void | erase() Erase previously submitted values for all input components on this
page. | protected void | error(String summary) Enqueue a global FacesMessage (not associated
with any particular componen) containing the specified summary text
and a message severity level of FacesMessage.SEVERITY_ERROR . | protected void | error(UIComponent component, String summary) Enqueue a FacesMessage associated with the
specified component, containing the specified summary text
and a message severity level of FacesMessage.SEVERITY_ERROR . | protected void | fatal(String summary) Enqueue a global FacesMessage (not associated
with any particular componen) containing the specified summary text
and a message severity level of FacesMessage.SEVERITY_FATAL . | protected void | fatal(UIComponent component, String summary) Enqueue a FacesMessage associated with the
specified component, containing the specified summary text
and a message severity level of FacesMessage.SEVERITY_FATAL . | protected Application | getApplication() | protected Map | getApplicationMap() | protected Object | getBean(String name) Return any attribute stored in request scope, session scope, or
application scope under the specified name. | protected FacesContext | getContext() Return the FacesContext instance for the current
request. | protected ExternalContext | getExternalContext() | protected FacesContext | getFacesContext() | protected Lifecycle | getLifecycle() | public PhaseId | getPhaseId() | protected Map | getRequestMap() | protected Map | getSessionMap() Return a Map of the session scope attributes for the
current user's session. | protected Object | getValue(String expr) | protected void | info(String summary) Enqueue a global FacesMessage (not associated
with any particular componen) containing the specified summary text
and a message severity level of FacesMessage.SEVERITY_INFO . | protected void | info(UIComponent component, String summary) Enqueue a FacesMessage associated with the
specified component, containing the specified summary text
and a message severity level of FacesMessage.SEVERITY_INFO . | 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. | protected void | log(String message) | protected void | log(String message, Throwable throwable) | protected void | renderResponse() Skip any remaining request processing lifecycle phases for the
current request, and go immediately to Render Response
phase. | protected void | setBean(String name, Object value) Replace the value of any attribute stored in request scope,
session scope, or application scope under the specified name. | protected void | setValue(String expr, Object value) | protected void | warn(String summary) Enqueue a global FacesMessage (not associated
with any particular componen) containing the specified summary text
and a message severity level of FacesMessage.SEVERITY_WARN . | protected void | warn(UIComponent component, String summary) Enqueue a FacesMessage associated with the
specified component, containing the specified summary text
and a message severity level of FacesMessage.SEVERITY_WARN . |
FacesBean | public FacesBean()(Code) | | |
afterApplyRequestValues | protected void afterApplyRequestValues()(Code) | | |
afterInvokeApplication | protected void afterInvokeApplication()(Code) | | |
afterPhase | public void afterPhase(PhaseEvent phaseEvent)(Code) | | Call through to the "after" lifecycle callback method
for the current phase.
Parameters: phaseEvent - 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 phaseEvent)(Code) | | Call through to the "before" lifecycle callback method
for the current phase.
Parameters: phaseEvent - PhaseEvent to be processed |
beforeProcessValidations | protected void beforeProcessValidations()(Code) | | |
beforeRenderResponse | protected void beforeRenderResponse()(Code) | | |
beforeRestoreView | protected void beforeRestoreView()(Code) | | |
beforeUpdateModelValues | protected void beforeUpdateModelValues()(Code) | | |
erase | protected void erase()(Code) | | Erase previously submitted values for all input components on this
page. This method MUST be called if you have bound
input components to database columns, and then arbitrarily navigate
the underlying RowSet to a different row in an event
handler method.
|
error | protected void error(String summary)(Code) | | Enqueue a global FacesMessage (not associated
with any particular componen) containing the specified summary text
and a message severity level of FacesMessage.SEVERITY_ERROR .
Parameters: summary - Summary text for this message |
error | protected void error(UIComponent component, String summary)(Code) | | Enqueue a FacesMessage associated with the
specified component, containing the specified summary text
and a message severity level of FacesMessage.SEVERITY_ERROR .
Parameters: component - Component with which this message is associated Parameters: summary - Summary text for this message |
fatal | protected void fatal(String summary)(Code) | | Enqueue a global FacesMessage (not associated
with any particular componen) containing the specified summary text
and a message severity level of FacesMessage.SEVERITY_FATAL .
Parameters: summary - Summary text for this message |
fatal | protected void fatal(UIComponent component, String summary)(Code) | | Enqueue a FacesMessage associated with the
specified component, containing the specified summary text
and a message severity level of FacesMessage.SEVERITY_FATAL .
Parameters: component - Component with which this message is associated Parameters: summary - Summary text for this message |
getApplication | protected Application getApplication()(Code) | | Return the Application instance for the current
web application.
|
getApplicationMap | protected Map getApplicationMap()(Code) | | Return a Map of the application scope attributes
for this web application.
|
getBean | protected Object getBean(String name)(Code) | | Return any attribute stored in request scope, session scope, or
application scope under the specified name. If no such
attribute is found, and if this name is the registered name of a
managed bean, cause a new instance of this managed bean to be created
(and stored in an appropriate scope, if necessary) and returned.
If no attribute exists, and no managed bean was created, return
null .
Parameters: name - Name of the attribute to be retrieved |
getContext | protected FacesContext getContext()(Code) | | Return the FacesContext instance for the current
request. This method has been restored for backwards compatibilty.
|
getExternalContext | protected ExternalContext getExternalContext()(Code) | | Return the ExternalContext instance for the
current request.
|
getFacesContext | protected FacesContext getFacesContext()(Code) | | Return the FacesContext instance for the current
request.
|
getLifecycle | protected Lifecycle getLifecycle()(Code) | | Return the configured Lifecycle instance for the
current web application.
|
getPhaseId | public PhaseId getPhaseId()(Code) | | Return PhaseId.ANY_PHASE to indicate that we are
interested in all phases.
|
getRequestMap | protected Map getRequestMap()(Code) | | Return a Map of the request scope attributes for
the current request.
|
getSessionMap | protected Map getSessionMap()(Code) | | Return a Map of the session scope attributes for the
current user's session. Note that calling this method will cause a
session to be created if there is not already one associated with
this request.
|
getValue | protected Object getValue(String expr)(Code) | | Evaluate the specified value binding expression, and return
the value that it points at.
Parameters: expr - Value binding expression (including delimiters) |
info | protected void info(String summary)(Code) | | Enqueue a global FacesMessage (not associated
with any particular componen) containing the specified summary text
and a message severity level of FacesMessage.SEVERITY_INFO .
Parameters: summary - Summary text for this message |
info | protected void info(UIComponent component, String summary)(Code) | | Enqueue a FacesMessage associated with the
specified component, containing the specified summary text
and a message severity level of FacesMessage.SEVERITY_INFO .
Parameters: component - Component with which this message is associated Parameters: summary - Summary text for this message |
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.
|
log | protected void log(String message)(Code) | | Log the specified message to the container's log file.
Parameters: message - Message to be logged |
log | protected void log(String message, Throwable throwable)(Code) | | Log the specified message and exception to the container's
log file.
Parameters: message - Message to be logged Parameters: throwable - Exception to be logged |
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.
|
setBean | protected void setBean(String name, Object value)(Code) | | Replace the value of any attribute stored in request scope,
session scope, or application scope under the specified name. If there
is no such attribute, create a new request scope attribute under this
name, and store the value there.
|
setValue | protected void setValue(String expr, Object value)(Code) | | Evaluate the specified value binding expression, and update
the value that it points at.
Parameters: expr - Value binding expression (including delimiters) thatmust point at a writeable property Parameters: value - New value for the property pointed at by expr |
warn | protected void warn(String summary)(Code) | | Enqueue a global FacesMessage (not associated
with any particular componen) containing the specified summary text
and a message severity level of FacesMessage.SEVERITY_WARN .
Parameters: summary - Summary text for this message |
warn | protected void warn(UIComponent component, String summary)(Code) | | Enqueue a FacesMessage associated with the
specified component, containing the specified summary text
and a message severity level of FacesMessage.SEVERITY_WARN .
Parameters: component - Component with which this message is associated Parameters: summary - Summary text for this message |
|
|