|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.context.FacesContext com.ibm.xsp.context.FacesContextEx
public abstract class FacesContextEx
Extended version of FacesContext which adds support for notification of when the FacesContext is being released, and various other XPage extensions on top of JSF, not intended to be subclassed by 3rd parties at present.
Field Summary | |
---|---|
static int |
CLOSE_COMPONENTMODE_CANCEL
Used in closeProcess(int, Object) |
static int |
CLOSE_COMPONENTMODE_OK
Used in closeProcess(int, Object) |
static int |
CLOSE_VALIDATION_RESULT
Used in closeProcess(int, Object) |
static int |
DATASOURCE_BEINGLOADED
Used in setDataSourceMode(int) |
static int |
DATASOURCE_BEINGSAVED
Used in setDataSourceMode(int) |
static int |
DATASOURCE_NORMAL
Used in setDataSourceMode(int) |
Constructor Summary | |
---|---|
FacesContextEx()
|
Method Summary | |
---|---|
abstract void |
addMessage(java.lang.String clientId,
javax.faces.application.FacesMessage message)
|
abstract void |
addRequestListener(FacesContextListener listener)
Add a listener for notification when the request has ended. |
abstract void |
closeProcess(int closeMode,
java.lang.Object closeValue)
Close the current process. |
abstract void |
endCustomRendering()
Throws an exception to stop the rendering process. |
abstract java.lang.String |
filterHtml(java.lang.String filterName,
java.lang.String value)
Filters the HTML input value using the named filtering engine. |
abstract FacesAjaxComponent |
getAjaxComponent()
Get the current component actually processing an Ajax request |
abstract javax.faces.application.Application |
getApplication()
|
abstract ApplicationEx |
getApplicationEx()
|
abstract java.util.Map<java.lang.Object,java.lang.Object> |
getAttributes()
Get the attribute Map associated to this context. |
abstract java.util.Iterator<java.lang.String> |
getClientIdsWithMessages()
|
abstract int |
getCloseMode()
|
abstract java.lang.Object |
getCloseValue()
|
abstract ComponentData |
getComponentData()
|
abstract java.lang.ClassLoader |
getContextClassLoader()
Get the context class loader. |
static FacesContextEx |
getCurrentInstance()
|
abstract DataPublisher |
getDataPublisher()
|
abstract int |
getDataSourceMode()
Get the current datasource mode (normal, data being loaded, data being saved) |
abstract javax.faces.context.ExternalContext |
getExternalContext()
|
abstract javax.faces.application.FacesMessage.Severity |
getMaximumSeverity()
|
abstract java.util.Iterator<javax.faces.application.FacesMessage> |
getMessages()
|
abstract java.util.Iterator<javax.faces.application.FacesMessage> |
getMessages(java.lang.String clientId)
|
abstract java.lang.String |
getPartialExecId()
|
abstract java.lang.String |
getPartialRefreshId()
|
abstract java.lang.String |
getProperty(java.lang.String name)
Get request based properties. |
abstract int |
getRenderingSequence()
Return the current view root rendering sequence. |
abstract javax.faces.render.RenderKit |
getRenderKit()
|
abstract boolean |
getRenderResponse()
|
abstract RequestParameters |
getRequestParameters()
Get the request parameters for this particular request. |
abstract boolean |
getResponseComplete()
|
abstract javax.faces.context.ResponseStream |
getResponseStream()
|
abstract javax.faces.context.ResponseWriter |
getResponseWriter()
|
abstract SessionData |
getSessionData()
|
abstract java.lang.String |
getSessionProperty(java.lang.String propName)
|
abstract StyleKit |
getStyleKit()
|
abstract java.lang.String |
getStyleKitId()
Get the theme id used by this request |
abstract javax.faces.component.UIComponent |
getSubTreeComponent()
|
abstract java.lang.String |
getTempRequestUrl()
|
abstract javax.faces.component.UIViewRoot |
getViewRoot()
|
abstract boolean |
isAjaxPartialRefresh()
|
abstract boolean |
isAjaxRendered(javax.faces.component.UIComponent component)
|
abstract boolean |
isAjaxRendering()
|
abstract boolean |
isAjaxWholeTreeRendered()
|
abstract boolean |
isDisableValidators()
|
abstract boolean |
isErrorDisplayed()
Check if the error messages had been reported to the user. |
abstract boolean |
isNotes()
|
abstract boolean |
isPartialExec()
|
abstract boolean |
isRenderingPhase()
Check if we are currently rendering. |
abstract boolean |
isRestoringState()
|
abstract boolean |
isRunningContext(java.lang.String context)
Check if the application is running in a particular context. |
abstract void |
release()
|
abstract void |
removeRequestListener(FacesContextListener listener)
Remove a listener for notification when the request has ended. |
abstract void |
renderResponse()
|
abstract void |
responseComplete()
|
abstract void |
setAjaxRendering(boolean ajaxRendeing)
|
abstract void |
setDataSourceMode(int dataSourceMode)
Set the current datasource mode (normal, data being loaded, data being saved) |
abstract void |
setDisableValidators(boolean preventValidators)
Enable/disable validators |
abstract void |
setErrorDisplayed(boolean errorDisplayed)
Set the error displayed flag. |
abstract void |
setPartialExecId(java.lang.String partialExecId)
Set the Partial Execution id |
abstract void |
setPartialRefreshId(java.lang.String ajaxCompId)
Set the Partial Refresh id |
abstract void |
setResponseStream(javax.faces.context.ResponseStream responseStream)
|
abstract void |
setResponseWriter(javax.faces.context.ResponseWriter responseWriter)
|
abstract void |
setSessionProperty(java.lang.String propName,
java.lang.String value)
|
abstract void |
setSubTreeComponent(javax.faces.component.UIComponent subTree)
|
abstract void |
setTempRequestUrl(java.lang.String s)
|
abstract void |
setViewRoot(javax.faces.component.UIViewRoot viewRoot)
|
abstract void |
startCustomRendering()
Reset the response content. |
Methods inherited from class javax.faces.context.FacesContext |
---|
setCurrentInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CLOSE_COMPONENTMODE_OK
closeProcess(int, Object)
public static final int CLOSE_COMPONENTMODE_CANCEL
closeProcess(int, Object)
public static final int CLOSE_VALIDATION_RESULT
closeProcess(int, Object)
public static final int DATASOURCE_NORMAL
setDataSourceMode(int)
public static final int DATASOURCE_BEINGLOADED
setDataSourceMode(int)
public static final int DATASOURCE_BEINGSAVED
setDataSourceMode(int)
Constructor Detail |
---|
public FacesContextEx()
Method Detail |
---|
public static FacesContextEx getCurrentInstance()
public abstract java.lang.ClassLoader getContextClassLoader()
getContextClassLoader
in class javax.faces.context.FacesContext
public abstract java.lang.String getProperty(java.lang.String name)
name
- defaultValue
-
public abstract java.lang.String getSessionProperty(java.lang.String propName)
public abstract void setSessionProperty(java.lang.String propName, java.lang.String value)
public abstract SessionData getSessionData()
public abstract ComponentData getComponentData()
public abstract int getDataSourceMode()
public abstract void setDataSourceMode(int dataSourceMode)
dataSourceMode
- the new data source modepublic abstract RequestParameters getRequestParameters()
public abstract boolean isRunningContext(java.lang.String context)
public abstract javax.faces.component.UIComponent getSubTreeComponent()
public abstract void setSubTreeComponent(javax.faces.component.UIComponent subTree)
public abstract boolean isErrorDisplayed()
public abstract void setErrorDisplayed(boolean errorDisplayed)
public abstract void addRequestListener(FacesContextListener listener)
listener
- public abstract void removeRequestListener(FacesContextListener listener)
listener
- public abstract boolean isRenderingPhase()
public abstract int getRenderingSequence()
public abstract java.util.Map<java.lang.Object,java.lang.Object> getAttributes()
public abstract void startCustomRendering() throws java.io.IOException
java.io.IOException
public abstract void endCustomRendering() throws java.io.IOException
java.io.IOException
public abstract void closeProcess(int closeMode, java.lang.Object closeValue)
public abstract int getCloseMode()
public abstract java.lang.Object getCloseValue()
public abstract void addMessage(java.lang.String clientId, javax.faces.application.FacesMessage message)
addMessage
in class javax.faces.context.FacesContext
public abstract ApplicationEx getApplicationEx()
public abstract javax.faces.application.Application getApplication()
getApplication
in class javax.faces.context.FacesContext
public abstract java.util.Iterator<java.lang.String> getClientIdsWithMessages()
getClientIdsWithMessages
in class javax.faces.context.FacesContext
public abstract javax.faces.context.ExternalContext getExternalContext()
getExternalContext
in class javax.faces.context.FacesContext
public abstract javax.faces.application.FacesMessage.Severity getMaximumSeverity()
getMaximumSeverity
in class javax.faces.context.FacesContext
public abstract java.util.Iterator<javax.faces.application.FacesMessage> getMessages()
getMessages
in class javax.faces.context.FacesContext
public abstract java.util.Iterator<javax.faces.application.FacesMessage> getMessages(java.lang.String clientId)
getMessages
in class javax.faces.context.FacesContext
public abstract javax.faces.render.RenderKit getRenderKit()
getRenderKit
in class javax.faces.context.FacesContext
public abstract java.lang.String getStyleKitId()
public abstract boolean isNotes()
true
if running on Notes Clientpublic abstract StyleKit getStyleKit()
xsp.theme.web
or xsp.theme.notes
. If not
set then get Style Kit based on webstandard
or notes
style kit ids.public abstract java.lang.String filterHtml(java.lang.String filterName, java.lang.String value)
filterName
- value
-
public abstract boolean isDisableValidators()
public abstract void setDisableValidators(boolean preventValidators)
preventValidators
- public abstract boolean isPartialExec()
public abstract java.lang.String getPartialExecId()
public abstract void setPartialExecId(java.lang.String partialExecId)
partialExecId
- public abstract boolean isAjaxPartialRefresh()
public abstract java.lang.String getPartialRefreshId()
public abstract void setPartialRefreshId(java.lang.String ajaxCompId)
ajaxCompId
- public abstract boolean isAjaxWholeTreeRendered()
public abstract boolean isAjaxRendered(javax.faces.component.UIComponent component)
component
-
public abstract boolean isAjaxRendering()
public abstract void setAjaxRendering(boolean ajaxRendeing)
ajaxRendeing
- public abstract FacesAjaxComponent getAjaxComponent()
public abstract java.lang.String getTempRequestUrl()
public abstract void setTempRequestUrl(java.lang.String s)
s
- public abstract DataPublisher getDataPublisher()
var
attributes to the reuquest parameters. Creates a DataPublisher if none already exist.public abstract boolean isRestoringState()
public abstract boolean getRenderResponse()
getRenderResponse
in class javax.faces.context.FacesContext
public abstract boolean getResponseComplete()
getResponseComplete
in class javax.faces.context.FacesContext
public abstract javax.faces.context.ResponseStream getResponseStream()
getResponseStream
in class javax.faces.context.FacesContext
public abstract javax.faces.context.ResponseWriter getResponseWriter()
getResponseWriter
in class javax.faces.context.FacesContext
public abstract void setResponseWriter(javax.faces.context.ResponseWriter responseWriter)
setResponseWriter
in class javax.faces.context.FacesContext
FacesContext.setResponseWriter(javax.faces.context.ResponseWriter)
public abstract javax.faces.component.UIViewRoot getViewRoot()
getViewRoot
in class javax.faces.context.FacesContext
public abstract void release()
release
in class javax.faces.context.FacesContext
public abstract void renderResponse()
renderResponse
in class javax.faces.context.FacesContext
public abstract void responseComplete()
responseComplete
in class javax.faces.context.FacesContext
public abstract void setResponseStream(javax.faces.context.ResponseStream responseStream)
setResponseStream
in class javax.faces.context.FacesContext
public abstract void setViewRoot(javax.faces.component.UIViewRoot viewRoot)
setViewRoot
in class javax.faces.context.FacesContext
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |