com.liferay.faces.util.context.internal
Class ExtFacesContextImpl

java.lang.Object
  extended by javax.faces.context.FacesContext
      extended by com.liferay.faces.util.context.ExtFacesContext
          extended by com.liferay.faces.util.context.internal.ExtFacesContextImpl
All Implemented Interfaces:
FacesContextHelper

public class ExtFacesContextImpl
extends ExtFacesContext

Author:
Neil Griffin

Constructor Summary
ExtFacesContextImpl()
           
 
Method Summary
 void addComponentErrorMessage(String clientId, String messageId)
          Adds the specified key as a message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_ERROR.
 void addComponentErrorMessage(String clientId, String messageId, Object... arguments)
          Adds the specified key as a global message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_ERROR and substitutes the specified argument(s) for the tokens in the specified key.
 void addComponentErrorMessage(String clientId, String messageId, Object argument)
          Adds the specified key as a global message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_ERROR and substitutes the specified argument for the tokens in the specified key.
 void addComponentInfoMessage(String clientId, String messageId)
          Adds the specified key as a message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_INFO.
 void addComponentInfoMessage(String clientId, String messageId, Object... arguments)
          Adds the specified key as a global message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_INFO and substitutes the specified argument(s) for the tokens in the specified key.
 void addComponentInfoMessage(String clientId, String messageId, Object argument)
          Adds the specified key as a global message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_INFO and substitutes the specified argument for the tokens in the specified key.
 void addGlobalErrorMessage(String messageId)
          Adds the specified key as a global message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_ERROR.
 void addGlobalErrorMessage(String messageId, Object... arguments)
          Adds the specified key as a global message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_ERROR and substitutes the specified argument(s) for the tokens in the specified key.
 void addGlobalErrorMessage(String messageId, Object argument)
          Adds the specified key as a global message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_ERROR and substitutes the specified argument for the tokens in the specified key.
 void addGlobalInfoMessage(String messageId)
          Adds the specified key as a global message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_INFO.
 void addGlobalInfoMessage(String messageId, Object... arguments)
          Adds the specified key as a global message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_INFO and substitutes the specified argument(s) for the tokens in the specified key.
 void addGlobalInfoMessage(String messageId, Object argument)
          Adds the specified key as a global message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_INFO and substitutes the specified argument for the tokens in the specified key.
 void addGlobalSuccessInfoMessage()
          Adds a global information message to the current FacesContext with "your-request-processed-successfully" key as the messageId.
 void addGlobalUnexpectedErrorMessage()
          Adds a global error message to the current FacesContext with "an-unexpected-error-occurred" key as the messageId.
 void addMessage(String clientId, javax.faces.application.FacesMessage.Severity severity, String messageId)
          Adds the specified key as a message associated with the UIComponent that has the specified clientId.
 void addMessage(String clientId, javax.faces.application.FacesMessage.Severity severity, String messageId, Object... arguments)
          Adds the specified key as a message associated with the UIComponent that has the specified clientId.
 void addMessage(String clientId, javax.faces.application.FacesMessage.Severity severity, String messageId, Object argument)
          Adds the specified key as a message associated with the UIComponent that has the specified clientId.
 void addMessage(String clientId, javax.faces.application.FacesMessage facesMessage)
           
 javax.faces.application.Application getApplication()
           
 Map<Object,Object> getAttributes()
           
 Iterator<String> getClientIdsWithMessages()
           
 javax.faces.event.PhaseId getCurrentPhaseId()
           
 javax.el.ELContext getELContext()
           
 javax.faces.context.ExceptionHandler getExceptionHandler()
           
 javax.faces.context.ExternalContext getExternalContext()
           
 javax.faces.context.FacesContext getFacesContext()
          Gets the underlying/wrapped FacesContext ThreadLocal singleton instance.
 Locale getLocale()
          Returns the locale of the viewRoot of the current JSF FacesContext
 javax.faces.application.FacesMessage.Severity getMaximumSeverity()
           
 String getMessage(Locale locale, String messageId)
          Returns the message associated with the specified messageId by delegating to the FacesMessageFactory, according to the specified locale.
 String getMessage(Locale locale, String messageId, Object... arguments)
          Returns the message associated with the specified messageId by delegating to the FacesMessageFactory, according to the specified locale and arguments that are to be substituted.
 String getMessage(String messageId)
          Returns the message associated with the specified messageId by delegating to the FacesMessageFactory, according to the current locale.
 String getMessage(String messageId, Object... arguments)
          Returns the message associated with the specified messageId by delegating to the FacesMessageFactory, according to the current locale and arguments that are to be substituted.
 List<javax.faces.application.FacesMessage> getMessageList()
           
 List<javax.faces.application.FacesMessage> getMessageList(String clientId)
           
 Iterator<javax.faces.application.FacesMessage> getMessages()
           
 Iterator<javax.faces.application.FacesMessage> getMessages(String clientId)
           
 String getNamespace()
          Delegates to the underlying ExternalContext.encodeNamespace(String) method in order to get the application namespace.
 javax.faces.component.UIForm getParentForm(javax.faces.component.UIComponent uiComponent)
          Return the parent form of the given component.
 javax.faces.context.PartialViewContext getPartialViewContext()
           
 javax.faces.render.RenderKit getRenderKit()
           
 boolean getRenderResponse()
           
 Object getRequestAttribute(String name)
          Returns the value of the request attribute associated with the specified name.
 String getRequestContextPath()
           
 String getRequestParameter(String name)
          Retrieves the specified parameter passed as part of the request
 boolean getRequestParameterAsBool(String name, boolean defaultValue)
          Retrieves the specified parameter passed as part of the request as a boolean.
 int getRequestParameterAsInt(String name, int defaultValue)
          Retrieves the specified parameter passed as part of the request as an integer.
 long getRequestParameterAsLong(String name, long defaultValue)
          Retrieves the specified parameter passed as part of the request as an integer.
 String getRequestParameterFromMap(String name)
          Retrieves the specified parameter from the ExternalContext's request parameter map.
 Map<String,String> getRequestParameterMap()
          Returns the map of request parameters from the ExternalContext.
 String getRequestQueryString()
          Retrieves the value of the original "javax.servlet.forward.query_string" request attribute.
 String getRequestQueryStringParameter(String name)
          Retrieves the value of the specified parameter name from the original "javax.servlet.forward.query_string" request attribute.
 boolean getResponseComplete()
           
 javax.faces.context.ResponseStream getResponseStream()
           
 javax.faces.context.ResponseWriter getResponseWriter()
           
 Object getSession(boolean create)
          Returns the session object associated with the current FacesContext.
 Object getSessionAttribute(String name)
          Returns the value of the session attribute associated with the specified name.
 javax.faces.component.UIViewRoot getViewRoot()
           
 boolean isPostback()
           
 boolean isProcessingEvents()
           
 boolean isProjectStage(javax.faces.application.ProjectStage stage)
           
 boolean isValidationFailed()
           
 javax.faces.component.UIComponent matchComponentInHierarchy(javax.faces.component.UIComponent parent, String partialClientId)
          Traverses the component tree starting at the specified UIComponent parent and returns the first UIComponent child that contains the specified partialClientId.
 javax.faces.component.UIComponent matchComponentInViewRoot(String partialClientId)
          Traverses the component tree associated with the UIViewRoot of this FacesContext and returns the first UIComponent child that contains the specified partialClientId.
 void navigate(String fromAction, String outcome)
          Sets the current JSF navigation to the specified outcome.
 void navigateTo(String outcome)
          Sets the current JSF navigation to the specified outcome.
 void recreateComponentTree()
          Delete the whole component tree.
 void registerPhaseListener(javax.faces.event.PhaseListener phaseListener)
          Register a PhaseListener programatically (instead of in the faces-config.xml).
 void release()
           
 void removeChildrenFromComponentTree(String clientId)
          clear component tree since input fields will not be refreshed.
 void removeMessages(String clientId)
          Removes all FacesMessage instances from this FacesContext that are associated with the specified clientId.
 void removeMessagesForImmediateComponents()
          Removes all FacesMessage instances from this FacesContext that are associated with components whose immediate attribute is true.The typical use case for this method is when seemingly bogus messages are added to the FacesContext on components whose immediate attribute is true.
 void removeMessagesForImmediateComponents(javax.faces.component.UIComponent uiComponent)
          Removes all FacesMessage instances from this FacesContext that are associated with components whose immediate attribute is true.The typical use case for this method is when seemingly bogus messages are added to the FacesContext on components whose immediate attribute is true.
 void removeParentFormFromComponentTree(javax.faces.component.UIComponent uiComponent)
          Delete the component subtree of a given component.
 void renderResponse()
           
 void resetView()
          Causes the current view's component tree to be discarded and re-rendered.
 void resetView(boolean renderResponse)
          Causes the current view's component tree to be discarded and (optionally) re-rendered.
 Object resolveExpression(String elExpression)
          Returns the object associated with the specified EL expression.
 void responseComplete()
           
 void setCurrentPhaseId(javax.faces.event.PhaseId currentPhaseId)
           
 void setExceptionHandler(javax.faces.context.ExceptionHandler exceptionHandler)
           
 void setProcessingEvents(boolean processingEvents)
           
 void setRequestAttribute(String name, Object value)
          Sets the value of the a request attribute using the specified name and value.
 void setResponseStream(javax.faces.context.ResponseStream responseStream)
           
 void setResponseWriter(javax.faces.context.ResponseWriter responseWriter)
           
 void setSessionAttribute(String name, Object value)
          Sets the value of the a session attribute using the specified name and value.
 void setViewRoot(javax.faces.component.UIViewRoot viewRoot)
           
 void validationFailed()
           
 
Methods inherited from class com.liferay.faces.util.context.ExtFacesContext
getInstance, setInstance
 
Methods inherited from class javax.faces.context.FacesContext
getCurrentInstance, getNamingContainerSeparatorChar, getResourceLibraryContracts, isReleased, setCurrentInstance, setResourceLibraryContracts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtFacesContextImpl

public ExtFacesContextImpl()
Method Detail

addComponentErrorMessage

public void addComponentErrorMessage(String clientId,
                                     String messageId)
Description copied from interface: FacesContextHelper
Adds the specified key as a message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_ERROR. The message will not be global, rather it will be associated with the javax.faces.component.UIComponent that is associated with the specified clientId.

See Also:
FacesContextHelper.addComponentErrorMessage(String, String)

addComponentErrorMessage

public void addComponentErrorMessage(String clientId,
                                     String messageId,
                                     Object argument)
Description copied from interface: FacesContextHelper
Adds the specified key as a global message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_ERROR and substitutes the specified argument for the tokens in the specified key. The message will not be global, rather it will be associated with the javax.faces.component.UIComponent that is associated with the specified clientId.

See Also:
FacesContextHelper.addComponentErrorMessage(String, String, Object)

addComponentErrorMessage

public void addComponentErrorMessage(String clientId,
                                     String messageId,
                                     Object... arguments)
Description copied from interface: FacesContextHelper
Adds the specified key as a global message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_ERROR and substitutes the specified argument(s) for the tokens in the specified key. The message will not be global, rather it will be associated with the javax.faces.component.UIComponent that is associated with the specified clientId.

See Also:
FacesContextHelper.addComponentErrorMessage(String, String, Object...)

addComponentInfoMessage

public void addComponentInfoMessage(String clientId,
                                    String messageId)
Description copied from interface: FacesContextHelper
Adds the specified key as a message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_INFO. The message will not be global, rather it will be associated with the javax.faces.component.UIComponent that is associated with the specified clientId.

See Also:
FacesContextHelper.addComponentInfoMessage(String, String)

addComponentInfoMessage

public void addComponentInfoMessage(String clientId,
                                    String messageId,
                                    Object argument)
Description copied from interface: FacesContextHelper
Adds the specified key as a global message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_INFO and substitutes the specified argument for the tokens in the specified key. The message will not be global, rather it will be associated with the javax.faces.component.UIComponent that is associated with the specified clientId.

See Also:
FacesContextHelper.addComponentInfoMessage(String, String, Object)

addComponentInfoMessage

public void addComponentInfoMessage(String clientId,
                                    String messageId,
                                    Object... arguments)
Description copied from interface: FacesContextHelper
Adds the specified key as a global message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_INFO and substitutes the specified argument(s) for the tokens in the specified key. The message will not be global, rather it will be associated with the javax.faces.component.UIComponent that is associated with the specified clientId.

See Also:
FacesContextHelper.addComponentInfoMessage(String, String, Object...)

addGlobalErrorMessage

public void addGlobalErrorMessage(String messageId)
Description copied from interface: FacesContextHelper
Adds the specified key as a global message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_ERROR.

See Also:
FacesContextHelper.addGlobalErrorMessage(String)

addGlobalErrorMessage

public void addGlobalErrorMessage(String messageId,
                                  Object argument)
Description copied from interface: FacesContextHelper
Adds the specified key as a global message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_ERROR and substitutes the specified argument for the tokens in the specified key.

See Also:
FacesContextHelper.addGlobalErrorMessage(String, Object)

addGlobalErrorMessage

public void addGlobalErrorMessage(String messageId,
                                  Object... arguments)
Description copied from interface: FacesContextHelper
Adds the specified key as a global message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_ERROR and substitutes the specified argument(s) for the tokens in the specified key.

See Also:
FacesContextHelper.addGlobalErrorMessage(String, Object...)

addGlobalInfoMessage

public void addGlobalInfoMessage(String messageId)
Description copied from interface: FacesContextHelper
Adds the specified key as a global message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_INFO.

See Also:
FacesContextHelper.addGlobalInfoMessage(String)

addGlobalInfoMessage

public void addGlobalInfoMessage(String messageId,
                                 Object argument)
Description copied from interface: FacesContextHelper
Adds the specified key as a global message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_INFO and substitutes the specified argument for the tokens in the specified key.

See Also:
FacesContextHelper.addGlobalInfoMessage(String, Object)

addGlobalInfoMessage

public void addGlobalInfoMessage(String messageId,
                                 Object... arguments)
Description copied from interface: FacesContextHelper
Adds the specified key as a global message to the FacesContext with severity javax.faces.application.FacesMessage.SEVERITY_INFO and substitutes the specified argument(s) for the tokens in the specified key.

See Also:
FacesContextHelper.addGlobalInfoMessage(String, Object...)

addGlobalSuccessInfoMessage

public void addGlobalSuccessInfoMessage()
Description copied from interface: FacesContextHelper
Adds a global information message to the current FacesContext with "your-request-processed-successfully" key as the messageId.

See Also:
FacesContextHelper.addGlobalSuccessInfoMessage()

addGlobalUnexpectedErrorMessage

public void addGlobalUnexpectedErrorMessage()
Description copied from interface: FacesContextHelper
Adds a global error message to the current FacesContext with "an-unexpected-error-occurred" key as the messageId.

See Also:
FacesContextHelper.addGlobalUnexpectedErrorMessage()

addMessage

public void addMessage(String clientId,
                       javax.faces.application.FacesMessage facesMessage)
Specified by:
addMessage in class javax.faces.context.FacesContext
Since:
JSF 1.0

addMessage

public void addMessage(String clientId,
                       javax.faces.application.FacesMessage.Severity severity,
                       String messageId)
Description copied from interface: FacesContextHelper
Adds the specified key as a message associated with the UIComponent that has the specified clientId. Specify clientId=null for global messages.

See Also:
FacesContextHelper#addMessage(String, Severity, String)

addMessage

public void addMessage(String clientId,
                       javax.faces.application.FacesMessage.Severity severity,
                       String messageId,
                       Object argument)
Description copied from interface: FacesContextHelper
Adds the specified key as a message associated with the UIComponent that has the specified clientId. Specify clientId=null for global messages.

See Also:
FacesContextHelper#addMessage(String, Severity, String, Object)

addMessage

public void addMessage(String clientId,
                       javax.faces.application.FacesMessage.Severity severity,
                       String messageId,
                       Object... arguments)
Description copied from interface: FacesContextHelper
Adds the specified key as a message associated with the UIComponent that has the specified clientId. Specify clientId=null for global messages.

See Also:
FacesContextHelper#addMessage(String, Severity, String, Object...)

matchComponentInHierarchy

public javax.faces.component.UIComponent matchComponentInHierarchy(javax.faces.component.UIComponent parent,
                                                                   String partialClientId)
Description copied from interface: FacesContextHelper
Traverses the component tree starting at the specified UIComponent parent and returns the first UIComponent child that contains the specified partialClientId.

See Also:
FacesContextHelper.matchComponentInHierarchy(UIComponent, String)

matchComponentInViewRoot

public javax.faces.component.UIComponent matchComponentInViewRoot(String partialClientId)
Description copied from interface: FacesContextHelper
Traverses the component tree associated with the UIViewRoot of this FacesContext and returns the first UIComponent child that contains the specified partialClientId.

See Also:
FacesContextHelper.matchComponentInViewRoot(String)

navigate

public void navigate(String fromAction,
                     String outcome)
Description copied from interface: FacesContextHelper
Sets the current JSF navigation to the specified outcome.

Parameters:
fromAction - The "from action" as specified in a JSF navigation rule. Can be null to if no action is specified in the rule.
outcome - The "from outcome" as specified in a JSF navigation rule
See Also:
FacesContextHelper.navigate(String, String)

navigateTo

public void navigateTo(String outcome)
Description copied from interface: FacesContextHelper
Sets the current JSF navigation to the specified outcome.

Parameters:
outcome - The "from outcome" as specified in a JSF navigation rule
See Also:
FacesContextHelper.navigateTo(String)

recreateComponentTree

public void recreateComponentTree()
Description copied from interface: FacesContextHelper
Delete the whole component tree. This causes the tree to be rebuilt the next time it is accessed. This addresses the problem that immediate actions cannot change the values of input components. To clear these values, use this method.

See Also:
FacesContextHelper.recreateComponentTree()

registerPhaseListener

public void registerPhaseListener(javax.faces.event.PhaseListener phaseListener)
Description copied from interface: FacesContextHelper
Register a PhaseListener programatically (instead of in the faces-config.xml). Such a PhaseListener can therefore be controlled by spring and use dependency injection, which is not possible otherwise.

See Also:
FacesContextHelper.registerPhaseListener(PhaseListener)

release

public void release()
Specified by:
release in class javax.faces.context.FacesContext
Since:
JSF 1.0

removeChildrenFromComponentTree

public void removeChildrenFromComponentTree(String clientId)
Description copied from interface: FacesContextHelper
clear component tree since input fields will not be refreshed. See ClearInputComponents for more information.

Parameters:
clientId - all children of the component with this id are cleared.
See Also:
FacesContextHelper.removeChildrenFromComponentTree(String)

removeMessages

public void removeMessages(String clientId)
Description copied from interface: FacesContextHelper
Removes all FacesMessage instances from this FacesContext that are associated with the specified clientId.

See Also:
FacesContextHelper.removeMessages(String)

removeMessagesForImmediateComponents

public void removeMessagesForImmediateComponents()
Description copied from interface: FacesContextHelper
Removes all FacesMessage instances from this FacesContext that are associated with components whose immediate attribute is true.The typical use case for this method is when seemingly bogus messages are added to the FacesContext on components whose immediate attribute is true. This happens because UIInput.processDecodes(javax.faces.context.FacesContext) calls validate() if the the immediate attribute is true.

See Also:
FacesContextHelper.removeMessagesForImmediateComponents()

removeMessagesForImmediateComponents

public void removeMessagesForImmediateComponents(javax.faces.component.UIComponent uiComponent)
Description copied from interface: FacesContextHelper
Removes all FacesMessage instances from this FacesContext that are associated with components whose immediate attribute is true.The typical use case for this method is when seemingly bogus messages are added to the FacesContext on components whose immediate attribute is true. This happens because UIInput.processDecodes(javax.faces.context.FacesContext) calls validate() if the the immediate attribute is true.

See Also:
FacesContextHelper.removeMessagesForImmediateComponents(UIComponent)

removeParentFormFromComponentTree

public void removeParentFormFromComponentTree(javax.faces.component.UIComponent uiComponent)
Description copied from interface: FacesContextHelper
Delete the component subtree of a given component. This causes the subtree to be rebuilt the next time it is accessed. This addresses the problem that immediate actions cannot change the values of input components. To clear these values, use this method.

See Also:
FacesContextHelper.removeParentFormFromComponentTree(UIComponent)

renderResponse

public void renderResponse()
Specified by:
renderResponse in class javax.faces.context.FacesContext
Since:
JSF 1.0

resetView

public void resetView()
Description copied from interface: FacesContextHelper
Causes the current view's component tree to be discarded and re-rendered.

See Also:
FacesContextHelper.resetView()

resetView

public void resetView(boolean renderResponse)
Description copied from interface: FacesContextHelper
Causes the current view's component tree to be discarded and (optionally) re-rendered. This is useful whenever an action causes navigation back to the current view, but the data in the backing bean(s) has changed substantially. The view is rendered as if the user is visiting for the first time.

Parameters:
renderResponse - causes the response to be rendered immediately if true.
See Also:
FacesContextHelper.resetView(boolean)

resolveExpression

public Object resolveExpression(String elExpression)
Description copied from interface: FacesContextHelper
Returns the object associated with the specified EL expression.

See Also:
FacesContextHelper.resolveExpression(String)

responseComplete

public void responseComplete()
Specified by:
responseComplete in class javax.faces.context.FacesContext
Since:
JSF 1.0

validationFailed

public void validationFailed()
Overrides:
validationFailed in class javax.faces.context.FacesContext
Since:
JSF 2.0

getApplication

public javax.faces.application.Application getApplication()
Specified by:
getApplication in class javax.faces.context.FacesContext
Since:
JSF 1.0

getAttributes

public Map<Object,Object> getAttributes()
Overrides:
getAttributes in class javax.faces.context.FacesContext
Since:
JSF 2.0

getClientIdsWithMessages

public Iterator<String> getClientIdsWithMessages()
Specified by:
getClientIdsWithMessages in class javax.faces.context.FacesContext
Since:
JSF 1.0

getCurrentPhaseId

public javax.faces.event.PhaseId getCurrentPhaseId()
Overrides:
getCurrentPhaseId in class javax.faces.context.FacesContext
Since:
JSF 2.0

setCurrentPhaseId

public void setCurrentPhaseId(javax.faces.event.PhaseId currentPhaseId)
Overrides:
setCurrentPhaseId in class javax.faces.context.FacesContext
Since:
JSF 2.0

isValidationFailed

public boolean isValidationFailed()
Overrides:
isValidationFailed in class javax.faces.context.FacesContext
Since:
JSF 2.0

isProjectStage

public boolean isProjectStage(javax.faces.application.ProjectStage stage)
Overrides:
isProjectStage in class javax.faces.context.FacesContext
Since:
JSF 2.0

getELContext

public javax.el.ELContext getELContext()
Overrides:
getELContext in class javax.faces.context.FacesContext
Since:
JSF 1.2

getExceptionHandler

public javax.faces.context.ExceptionHandler getExceptionHandler()
Overrides:
getExceptionHandler in class javax.faces.context.FacesContext
Since:
JSF 2.0

setExceptionHandler

public void setExceptionHandler(javax.faces.context.ExceptionHandler exceptionHandler)
Overrides:
setExceptionHandler in class javax.faces.context.FacesContext
Since:
JSF 2.0

getExternalContext

public javax.faces.context.ExternalContext getExternalContext()
Specified by:
getExternalContext in class javax.faces.context.FacesContext
Since:
JSF 1.0

getFacesContext

public javax.faces.context.FacesContext getFacesContext()
Description copied from interface: FacesContextHelper
Gets the underlying/wrapped FacesContext ThreadLocal singleton instance.

See Also:
FacesContextHelper.getFacesContext()

isPostback

public boolean isPostback()
Overrides:
isPostback in class javax.faces.context.FacesContext
Since:
JSF 2.0

getLocale

public Locale getLocale()
Description copied from interface: FacesContextHelper
Returns the locale of the viewRoot of the current JSF FacesContext

See Also:
FacesContextHelper.getLocale()

getMaximumSeverity

public javax.faces.application.FacesMessage.Severity getMaximumSeverity()
Specified by:
getMaximumSeverity in class javax.faces.context.FacesContext
Since:
JSF 1.0

getMessage

public String getMessage(String messageId)
Description copied from interface: FacesContextHelper
Returns the message associated with the specified messageId by delegating to the FacesMessageFactory, according to the current locale.

See Also:
FacesContextHelper.getMessage(String)

getMessage

public String getMessage(String messageId,
                         Object... arguments)
Description copied from interface: FacesContextHelper
Returns the message associated with the specified messageId by delegating to the FacesMessageFactory, according to the current locale and arguments that are to be substituted.

See Also:
FacesContextHelper.getMessage(String, Object...)

getMessage

public String getMessage(Locale locale,
                         String messageId)
Description copied from interface: FacesContextHelper
Returns the message associated with the specified messageId by delegating to the FacesMessageFactory, according to the specified locale.

See Also:
FacesContextHelper.getMessage(Locale, String)

getMessage

public String getMessage(Locale locale,
                         String messageId,
                         Object... arguments)
Description copied from interface: FacesContextHelper
Returns the message associated with the specified messageId by delegating to the FacesMessageFactory, according to the specified locale and arguments that are to be substituted.

See Also:
FacesContextHelper.getMessage(Locale, String, Object...)

getMessageList

public List<javax.faces.application.FacesMessage> getMessageList()
Overrides:
getMessageList in class javax.faces.context.FacesContext
Since:
JSF 2.0

getMessageList

public List<javax.faces.application.FacesMessage> getMessageList(String clientId)
Overrides:
getMessageList in class javax.faces.context.FacesContext
Since:
JSF 2.0

getMessages

public Iterator<javax.faces.application.FacesMessage> getMessages()
Specified by:
getMessages in class javax.faces.context.FacesContext
Since:
JSF 1.0

getMessages

public Iterator<javax.faces.application.FacesMessage> getMessages(String clientId)
Specified by:
getMessages in class javax.faces.context.FacesContext
Since:
JSF 1.0

getNamespace

public String getNamespace()
Description copied from interface: FacesContextHelper
Delegates to the underlying ExternalContext.encodeNamespace(String) method in order to get the application namespace.

See Also:
FacesContextHelper#getPortletNamespace()

getParentForm

public javax.faces.component.UIForm getParentForm(javax.faces.component.UIComponent uiComponent)
Description copied from interface: FacesContextHelper
Return the parent form of the given component.

Returns:
the parent form or null if no parent form is found.
See Also:
FacesContextHelper.getParentForm(UIComponent)

getPartialViewContext

public javax.faces.context.PartialViewContext getPartialViewContext()
Overrides:
getPartialViewContext in class javax.faces.context.FacesContext
Since:
JSF 2.0

setProcessingEvents

public void setProcessingEvents(boolean processingEvents)
Overrides:
setProcessingEvents in class javax.faces.context.FacesContext
Since:
JSF 2.0

getRenderKit

public javax.faces.render.RenderKit getRenderKit()
Specified by:
getRenderKit in class javax.faces.context.FacesContext
Since:
JSF 1.0

getRenderResponse

public boolean getRenderResponse()
Specified by:
getRenderResponse in class javax.faces.context.FacesContext
Since:
JSF 1.0

getRequestAttribute

public Object getRequestAttribute(String name)
Description copied from interface: FacesContextHelper
Returns the value of the request attribute associated with the specified name.

See Also:
FacesContextHelper.getRequestAttribute(String)

setRequestAttribute

public void setRequestAttribute(String name,
                                Object value)
Description copied from interface: FacesContextHelper
Sets the value of the a request attribute using the specified name and value.

See Also:
FacesContextHelper.setRequestAttribute(String, Object)

getRequestContextPath

public String getRequestContextPath()
Returns:
the request context path. FacesContext.getExternalContext() ExternalContext.getRequestContextPath()
See Also:
FacesContextHelper.getRequestContextPath()

getRequestParameter

public String getRequestParameter(String name)
Description copied from interface: FacesContextHelper
Retrieves the specified parameter passed as part of the request

See Also:
FacesContextHelper.getRequestParameter(String)

getRequestParameterAsBool

public boolean getRequestParameterAsBool(String name,
                                         boolean defaultValue)
Description copied from interface: FacesContextHelper
Retrieves the specified parameter passed as part of the request as a boolean. The values "yes", "true", "y", and "1" are accetable values for "TRUE".

See Also:
FacesContextHelper.getRequestParameterAsBool(String, boolean)

getRequestParameterAsInt

public int getRequestParameterAsInt(String name,
                                    int defaultValue)
Description copied from interface: FacesContextHelper
Retrieves the specified parameter passed as part of the request as an integer.

See Also:
FacesContextHelper.getRequestParameterAsInt(String, int)

getRequestParameterAsLong

public long getRequestParameterAsLong(String name,
                                      long defaultValue)
Description copied from interface: FacesContextHelper
Retrieves the specified parameter passed as part of the request as an integer.

See Also:
FacesContextHelper.getRequestParameterAsLong(String, long)

getRequestParameterFromMap

public String getRequestParameterFromMap(String name)
Description copied from interface: FacesContextHelper
Retrieves the specified parameter from the ExternalContext's request parameter map.

See Also:
FacesContextHelper.getRequestParameterFromMap(String)

getRequestParameterMap

public Map<String,String> getRequestParameterMap()
Description copied from interface: FacesContextHelper
Returns the map of request parameters from the ExternalContext.

See Also:
FacesContextHelper.getRequestParameterMap()

getRequestQueryString

public String getRequestQueryString()
Description copied from interface: FacesContextHelper
Retrieves the value of the original "javax.servlet.forward.query_string" request attribute.

See Also:
FacesContextHelper.getRequestQueryString()

getRequestQueryStringParameter

public String getRequestQueryStringParameter(String name)
Description copied from interface: FacesContextHelper
Retrieves the value of the specified parameter name from the original "javax.servlet.forward.query_string" request attribute.

See Also:
FacesContextHelper.getRequestQueryStringParameter(String)

getResponseComplete

public boolean getResponseComplete()
Specified by:
getResponseComplete in class javax.faces.context.FacesContext
Since:
JSF 1.0

getResponseStream

public javax.faces.context.ResponseStream getResponseStream()
Specified by:
getResponseStream in class javax.faces.context.FacesContext
Since:
JSF 1.0

setResponseStream

public void setResponseStream(javax.faces.context.ResponseStream responseStream)
Specified by:
setResponseStream in class javax.faces.context.FacesContext
Since:
JSF 1.0

getResponseWriter

public javax.faces.context.ResponseWriter getResponseWriter()
Specified by:
getResponseWriter in class javax.faces.context.FacesContext
Since:
JSF 1.0

setResponseWriter

public void setResponseWriter(javax.faces.context.ResponseWriter responseWriter)
Specified by:
setResponseWriter in class javax.faces.context.FacesContext
Since:
JSF 1.0

isProcessingEvents

public boolean isProcessingEvents()
Overrides:
isProcessingEvents in class javax.faces.context.FacesContext
Since:
JSF 2.0

getSession

public Object getSession(boolean create)
Description copied from interface: FacesContextHelper
Returns the session object associated with the current FacesContext.

Parameters:
create - Flag indicating whether or not a session should be created if it doesn't yet exist.
See Also:
FacesContextHelper.getSession(boolean)

getSessionAttribute

public Object getSessionAttribute(String name)
Description copied from interface: FacesContextHelper
Returns the value of the session attribute associated with the specified name.

See Also:
FacesContextHelper.getSessionAttribute(String)

setSessionAttribute

public void setSessionAttribute(String name,
                                Object value)
Description copied from interface: FacesContextHelper
Sets the value of the a session attribute using the specified name and value.

See Also:
FacesContextHelper.setSessionAttribute(String, Object)

getViewRoot

public javax.faces.component.UIViewRoot getViewRoot()
Specified by:
getViewRoot in class javax.faces.context.FacesContext
Since:
JSF 1.0

setViewRoot

public void setViewRoot(javax.faces.component.UIViewRoot viewRoot)
Specified by:
setViewRoot in class javax.faces.context.FacesContext
Since:
JSF 1.0


Copyright © 2015 Liferay, Inc.. All rights reserved.