|
Oracle Fusion Middleware Java API Reference for Oracle ADF Faces 11g Release 1 (11.1.1) E10684-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.adf.view.rich.context.AdfFacesContext
public abstract class AdfFacesContext
A context object that largely exists as a mirror for the Apache Trinidad RequestContext, but also provides ADF Faces-specific APIs.
Field Summary | |
---|---|
static java.lang.String |
VARIABLE_NAME Name of the EL implicit variable ("adfFacesContext") that is used to expose this context object. |
Constructor Summary | |
---|---|
AdfFacesContext() |
Method Summary | |
---|---|
abstract void |
addPartialTarget(javax.faces.component.UIComponent newTarget) Add a component as a partial target. |
abstract void |
addPartialTriggerListeners(javax.faces.component.UIComponent listener, java.lang.String[] trigger) Adds a listener on a set of particular triggering components. |
abstract java.lang.String |
getAccessibilityMode() Returns the name of the current accessibility mode. |
Agent |
getAgent() Returns the Agent information for the current context |
abstract ApplicationContextManager |
getApplicationContextManager() Returns the ApplicationContextManager instance used to manage re-entrant application context invocation. |
abstract BackingBeanScopeProvider |
getBackingBeanScopeProvider() Returns a BackingBeanScopeProvider instance and is shared across the entire application. |
ChangeManager |
getChangeManager() Gets the ChangeManager for the current application. |
abstract java.util.List<java.awt.Color> |
getColorPalette(java.lang.String name) Returns a List that takes color palette name as key, and returns the color palette as a result. |
abstract java.lang.String |
getCurrencyCode() Return the ISO 4217 currency code used by default for formatting currency fields when those fields do not specify an explicit currency field via their converter. |
static AdfFacesContext |
getCurrentInstance() Retrieves the AdfFacesContext active for the current thread. |
abstract DataUpdateManager |
getDataUpdateManager() Returns the DataUpdateManager to use for registering and unregistering components for use with eitehr automatic PPR or active Datata |
abstract char |
getDecimalSeparator() Return the separator used as the decimal point. |
abstract DialogService |
getDialogService() Returns an DialogService, which exposes a number of APIs needed by component and framework developers. |
abstract DirtyPageHandler |
getDirtyPageHandler() Returns DirtyPageHandler service registered under meta-inf/services or a default implementation if none was found |
abstract EndUserMonitoringService |
getEndUserMonitoringService() Returns the EndUserMonitoringService that provides the ability to log key performance data for every user initiated action on a page. |
abstract ExecutionContextProvider |
getExecutionContextProvider() Returns an ExecutionContextDataProvider to use for retrieving context information pertaining to the current request. |
abstract java.util.Map |
getFormatter() Returns a Map that performs message formatting with a recursive Map structure. |
abstract HelpProvider |
getHelpProvider() Gets the HelpProvider that is registered in META-INF/adf-settings.xml. |
java.util.Map |
getHelpSystem() Deprecated. on 24-jan-2007, for 11.1.1.0.JI2. Use the new HelpProvider framework. |
java.util.Map |
getHelpTopic() Deprecated. on 24-jan-2007, for 11.1.1.0.JI2. Use the new HelpProvider framework. |
abstract char |
getNumberGroupingSeparator() Return the separator used for groups of numbers. |
java.lang.String |
getOracleHelpServletUrl() Deprecated. on 24-jan-2007, for 11.1.1.0.JI2. Use the new HelpProvider framework. |
abstract java.lang.String |
getOutputMode() Returns the "output mode" - printable, etc. |
abstract java.util.Map<java.lang.String,java.lang.Object> |
getPageFlowScope() Returns a Map of objects at "pageFlow" scope. |
PageFlowScopeProvider |
getPageFlowScopeProvider() Gets the PageFlowScopeProvider for the current application. |
PageResolver |
getPageResolver() Gets the PageResolver for the current application. |
abstract org.apache.myfaces.trinidad.change.ChangeManager |
getPersistentChangeManager() Returns the persistent change manager registered through web.xml for the current application |
java.util.Map |
getProcessScope() Deprecated. since 11.0; use getPageFlowScope() |
RegionManager |
getRegionManager() Gets the RegionManager for the current application. |
abstract java.lang.String |
getSkinFamily() Returns the name of the preferred skin family. |
abstract java.util.TimeZone |
getTimeZone() Returns the default TimeZone used for interpreting and formatting date values. |
abstract int |
getTwoDigitYearStart() Returns the year offset for parsing years with only two digits. |
abstract UriManager |
getUriManager() Retrieves an instance of UriManager for manipulation browser URIs |
abstract java.util.Map<java.lang.String,java.lang.Object> |
getViewScope() Returns a Map of objects at "view" scope. |
abstract WindowIdProvider |
getWindowIdProvider() Returns the WindowIdProvider object |
abstract WindowIdProvider |
getWindowIdProvider(javax.faces.context.ExternalContext externalContext) Returns the WindowIdProvider object from the ExternalContext |
abstract boolean |
isClientValidationDisabled() Returns true if client-side validation should be disabled. |
abstract boolean |
isDebugOutput() Returns true if output should contain debugging information. |
abstract boolean |
isFurtherValidationNeeded() Returns true if a framework providing additional validation on top of the faces lifecycle should run that validation. |
abstract boolean |
isInitialRender() Returns true if this request is the first request to render the page. |
abstract boolean |
isPartialRequest(javax.faces.context.FacesContext context) Method to indicate if this current HTTP request is a partial page rendering request. |
abstract boolean |
isPostback() Returns true if JSF is currently processing a postback request. |
abstract boolean |
isRightToLeft() Returns true if the user should be shown output in right-to-left. |
abstract void |
launchDialog(javax.faces.component.UIViewRoot dialogRoot, java.util.Map dialogParameters, javax.faces.component.UIComponent source, boolean useWindow, java.util.Map windowProperties) Launch a dialog, optionally raising it in a new dialog window. |
abstract void |
partialUpdateNotify(javax.faces.component.UIComponent updated) Called when any component gets updated. |
abstract void |
queueTaskForAfterPhase(javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId, java.lang.Runnable task) Queue a task that will be run after a phase. |
abstract void |
queueTaskForBeforePhase(javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId, java.lang.Runnable task) Queue a task that will be run before a phase. |
abstract javax.faces.component.UIComponent |
restoreComponent(java.lang.Object state) Restores the state of a component. |
abstract void |
returnFromDialog(java.lang.Object returnValue, java.util.Map returnParameters) Returns from a dialog raised by a UIXCommand component, or any component implementing DialogSource , or any direct calls to launchDialog() . |
abstract java.lang.Object |
saveComponent(javax.faces.component.UIComponent component) Saves the state of a UIComponent tree into an Object. |
abstract void |
setFurtherValidationNeeded(boolean validationNeeded) Used by internal ADF Faces code. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VARIABLE_NAME
Constructor Detail |
---|
public AdfFacesContext()
Method Detail |
---|
public static AdfFacesContext getCurrentInstance()
public abstract void queueTaskForAfterPhase(javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId, java.lang.Runnable task)
context
- the FacesContextphaseId
- the phase after which it must be run; ANY_PHASE is not supportedtask
- a Runnable that implements the taskpublic abstract void queueTaskForBeforePhase(javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId, java.lang.Runnable task)
context
- the FacesContextphaseId
- the phase after which it must be run; ANY_PHASE is not supportedtask
- a Runnable that implements the taskpublic abstract WindowIdProvider getWindowIdProvider()
public abstract WindowIdProvider getWindowIdProvider(javax.faces.context.ExternalContext externalContext)
public abstract DataUpdateManager getDataUpdateManager()
public abstract DirtyPageHandler getDirtyPageHandler()
public abstract EndUserMonitoringService getEndUserMonitoringService()
public abstract ExecutionContextProvider getExecutionContextProvider()
public abstract BackingBeanScopeProvider getBackingBeanScopeProvider()
public abstract java.util.Map<java.lang.String,java.lang.Object> getViewScope()
The viewScope will not be available if there is no FacesContext
public abstract java.util.Map<java.lang.String,java.lang.Object> getPageFlowScope()
@Deprecated
public final java.util.Map getProcessScope()
public abstract void returnFromDialog(java.lang.Object returnValue, java.util.Map returnParameters)
UIXCommand
component, or any component implementing DialogSource
, or any direct calls to launchDialog()
.returnValue
- the value to be delivered in the the ReturnEventReturnEvent
public abstract DialogService getDialogService()
public abstract void launchDialog(javax.faces.component.UIViewRoot dialogRoot, java.util.Map dialogParameters, javax.faces.component.UIComponent source, boolean useWindow, java.util.Map windowProperties)
The dialog will receive a new pageFlowScope
map, which includes all the values of the currently available pageFlowScope as well as a set of properties passed to this function in the dialogParameters
map. Changes to this newly created scope will not be visible once the dialog returns.
dialogRoot
- the UIViewRoot for the page being launcheddialogParameters
- a set of parameters to populate the newly created pageFlowScopesource
- the UIComponent that launched the dialog and should receive the ReturnEvent
when the dialog is complete.useWindow
- if true, use a popup window for the dialog if available on the current user agent devicewindowProperties
- the set of UI parameters used to modify the window, if one is used. The set of properties that\ are supported will depend on the RenderKit
, but common examples include "width", "height", "top" and "left".public abstract boolean isPostback()
isPostback()
will return false if this is a request for an initial render of a page (that is, if Apply Request Values never executes), or if during the request the user is navigated to a different page (because of a navigation rule, etc). For example, during a request that results in a navigation to a new page, isPostback()
will return true from Apply Request Values to Invoke Application, then false afterwards; whereas if there was no navigation, it would return true
The value of this method is undefined during (or before) the Restore View phase, but can be used in the afterPhase() method of a PhaseListener for Restore View.
In general, use of this method and its exposed EL variable is discouraged. In practice, callers of this method have attempted to use isPostback
as a proxy for some piece of application state. It is always better to model these cases in terms of the actual application state, as using isPostback
is often neither an exact proxy for the application state, or as the application and view technology change, the validity of the isPostback
proxy can drift from the application state that it is acting as a proxy for.
isInitialRender()
public abstract boolean isInitialRender()
Use of this method (and its exposed EL variable) is discouraged. In practice, callers attempt to use the initial render of a page to represent a state better modeled in the application itself. In other cases, view scoped managed beans with @PostConstruct
annotations might be more appropriate. In general, the only valid use case is as part of a minimal effort (but probably still incorrect) migration from uses of isPostback
in 10.1.3 code to isInitialRender
in version 11 code.
isPostback()
public abstract boolean isPartialRequest(javax.faces.context.FacesContext context)
context
- the FacesContext
object for the request we are processingpublic abstract boolean isFurtherValidationNeeded()
public abstract void setFurtherValidationNeeded(boolean validationNeeded)
public abstract boolean isDebugOutput()
public abstract boolean isClientValidationDisabled()
public abstract java.lang.String getOutputMode()
public abstract java.lang.String getSkinFamily()
public abstract java.lang.String getAccessibilityMode()
public abstract boolean isRightToLeft()
public abstract char getNumberGroupingSeparator()
public abstract char getDecimalSeparator()
public abstract java.lang.String getCurrencyCode()
public abstract int getTwoDigitYearStart()
1950
This is used by @link{oracle.adf.faces.view.converter.DateTimeConverter} while converting strings to Date object.@Deprecated
public java.lang.String getOracleHelpServletUrl()
HelpProvider
framework.public abstract HelpProvider getHelpProvider()
adf-settings.xml example
@Deprecated
public java.util.Map getHelpTopic()
HelpProvider
framework.@Deprecated
public java.util.Map getHelpSystem()
HelpProvider
framework.public abstract java.util.TimeZone getTimeZone()
public ChangeManager getChangeManager()
public abstract org.apache.myfaces.trinidad.change.ChangeManager getPersistentChangeManager()
public abstract ApplicationContextManager getApplicationContextManager()
UIComponent.invokeOnComponent(FacesContext,String,ContextCallback)
is called recursively, or in response to in-context event delivery. Any component or application artifact that modifies the application context (by for example setting request attributes or modifying a custom ELResolver) must use the ApplicationContextManager to register their changes to the application context during non-component traversals. For UIComponents, this is modifications that the components make during invokeOnComponent() and during in-context event delivery.ApplicationContextManager
public PageFlowScopeProvider getPageFlowScopeProvider()
public PageResolver getPageResolver()
public RegionManager getRegionManager()
public abstract void addPartialTarget(javax.faces.component.UIComponent newTarget)
public abstract void addPartialTriggerListeners(javax.faces.component.UIComponent listener, java.lang.String[] trigger)
public abstract void partialUpdateNotify(javax.faces.component.UIComponent updated)
public abstract java.util.List<java.awt.Color> getColorPalette(java.lang.String name)
public abstract java.util.Map getFormatter()
public Agent getAgent()
public abstract java.lang.Object saveComponent(javax.faces.component.UIComponent component)
component
- the componentpublic abstract javax.faces.component.UIComponent restoreComponent(java.lang.Object state) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
state
- an Object created by a prior call to saveComponent().java.lang.ClassNotFoundException
java.lang.InstantiationException
java.lang.IllegalAccessException
public abstract UriManager getUriManager()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Faces 11g Release 1 (11.1.1) E10684-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |