| java.lang.Object com.sun.rave.web.ui.appbase.FacesBean com.sun.rave.web.ui.appbase.AbstractApplicationBean
All known Subclasses: vehicleincidentreportapplication.ApplicationBean1, twopagecrudtable.ApplicationBean1, movieadmin.ApplicationBean1, travelcenter.ApplicationBean1, singlepagecrudtable.ApplicationBean1, singlepagecrudform.ApplicationBean1,
AbstractApplicationBean | abstract public class AbstractApplicationBean extends FacesBean (Code) | | AbstractApplicationBean is the abstract base class for
data bean(s) that are stored in application scope attributes. It extends
FacesBean , so it inherits all of the default behavior
found there. In addition, the following lifecycle methods are called
automatically when the corresponding events occur:
init() - Called when this bean is initially added as an
application scope attribute (typically as the result of
evaluating a value binding or method binding expression).
destroy() - Called when the bean is removed from the
application attributes (typically as a result of the application
being shut down by the servlet container).
|
Field Summary | |
protected String | encoding Mapping from the String version of the Locale for
this response to the corresponding character encoding. |
Method Summary | |
public void | destroy() This method is called when this bean is removed from
application scope. | public String | getLocaleCharacterEncoding() Return an appropriate character encoding based on the
Locale defined for the current JavaServer Faces
view. | public void | init() This method is called when this bean is initially added to
application scope. |
encoding | protected String encoding(Code) | | Mapping from the String version of the Locale for
this response to the corresponding character encoding. For each
row, the first String is the value returned by the toString() method
for the java.util.Locale for the current view, and the second
String is the name of the character encoding to be used.
Only locales that use an encoding other than the default (UTF-8)
need to be listed here.
|
AbstractApplicationBean | public AbstractApplicationBean()(Code) | | Create a new application scope bean.
|
destroy | public void destroy()(Code) | | This method is called when this bean is removed from
application scope. Typically, this occurs as a result of
the application being shut down by its owning container.
You may customize this method to clean up resources allocated
during the execution of the init() method, or
at any later time during the lifetime of the application.
|
getLocaleCharacterEncoding | public String getLocaleCharacterEncoding()(Code) | | Return an appropriate character encoding based on the
Locale defined for the current JavaServer Faces
view. If no more suitable encoding can be found, return
"UTF-8" as a general purpose default.
This method makes a convenient value binding target for the
value property of a Set Encoding component.
Applications that wish to specialize this behavior can override
this method in their own application bean class.
|
init | public void init()(Code) | | This method is called when this bean is initially added to
application scope. Typically, this occurs as a result of evaluating
a value binding or method binding expression, which utilizes the
managed bean facility to instantiate this bean and store it into
application scope.
You may customize this method to initialize and cache application wide
data values (such as the lists of valid options for dropdown list
components), or to allocate resources that are required for the
lifetime of the application.
|
|
|