org.portletfaces.liferay.faces.context
Class LiferayFacesContext

java.lang.Object
  extended by javax.faces.context.FacesContext
      extended by org.portletfaces.liferay.faces.context.LiferayFacesContext
All Implemented Interfaces:
FacesContextHelper, LiferayPortletHelper, PortletHelper
Direct Known Subclasses:
LiferayFacesContextImpl

public abstract class LiferayFacesContext
extends javax.faces.context.FacesContext
implements FacesContextHelper, PortletHelper, LiferayPortletHelper


Constructor Summary
LiferayFacesContext()
           
 
Method Summary
abstract  void addGlobalSuccessInfoMessage()
          Adds a global information message to the current FacesContext with the standard Liferay "your-request-processed-successfully" key as the messageId.
abstract  void addGlobalUnexpectedErrorMessage()
          Adds a global error message to the current FacesContext with the standard Liferay "an-unexpected-error-occurred" key as the messageId.
static LiferayFacesContext getInstance()
          Returns the implementation singleton instance.
static void setInstance(LiferayFacesContext liferayFacesContext)
          Sets the implementation singleton instance.
 
Methods inherited from class javax.faces.context.FacesContext
addMessage, getApplication, getAttributes, getClientIdsWithMessages, getCurrentInstance, getCurrentPhaseId, getELContext, getExceptionHandler, getExternalContext, getMaximumSeverity, getMessageList, getMessageList, getMessages, getMessages, getPartialViewContext, getRenderKit, getRenderResponse, getResponseComplete, getResponseStream, getResponseWriter, getViewRoot, isPostback, isProcessingEvents, isProjectStage, isValidationFailed, release, renderResponse, responseComplete, setCurrentInstance, setCurrentPhaseId, setExceptionHandler, setProcessingEvents, setResponseStream, setResponseWriter, setViewRoot, validationFailed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.portletfaces.liferay.faces.context.FacesContextHelper
addComponentErrorMessage, addComponentErrorMessage, addComponentErrorMessage, addComponentInfoMessage, addComponentInfoMessage, addComponentInfoMessage, addGlobalErrorMessage, addGlobalErrorMessage, addGlobalErrorMessage, addGlobalInfoMessage, addGlobalInfoMessage, addGlobalInfoMessage, addMessage, addMessage, addMessage, getFacesContext, getLocale, getMessage, getMessage, getMessage, getMessage, getNamespace, getParentForm, getRequestAttribute, getRequestContextPath, getRequestParameter, getRequestParameterAsBool, getRequestParameterAsInt, getRequestParameterAsLong, getRequestParameterFromMap, getRequestParameterMap, getRequestQueryString, getRequestQueryStringParameter, getSession, getSessionAttribute, matchComponentInHierarchy, matchComponentInViewRoot, navigate, navigateTo, recreateComponentTree, registerPhaseListener, removeChildrenFromComponentTree, removeMessages, removeMessagesForImmediateComponents, removeMessagesForImmediateComponents, removeParentFormFromComponentTree, resetView, resetView, resolveExpression, setRequestAttribute, setSessionAttribute
 
Methods inherited from interface org.portletfaces.liferay.faces.context.PortletHelper
createActionURL, createRenderURL, getActionResponse, getPortalContext, getPortletConfig, getPortletContext, getPortletContextName, getPortletName, getPortletPreference, getPortletPreferenceAsBool, getPortletPreferenceAsInt, getPortletPreferenceAsShort, getPortletPreferenceAsString, getPortletPreferences, getPortletRenderRequest, getPortletRenderResponse, getPortletRequest, getPortletResponse, getPortletSession, getRemoteUser, getSessionSharedAttribute, getWindowState, isPortletEnvironment, isUserInRole, isWindowMaximized, isWindowNormal, setPortletMode, setSessionSharedAttribute, setWindowState, setWindowStateToMaximized, setWindowStateToNormal
 
Methods inherited from interface org.portletfaces.liferay.faces.context.LiferayPortletHelper
checkUserPortletPermission, getCompanyId, getDocumentLibraryURL, getHostGroupId, getImageGalleryURL, getLayout, getPermissionChecker, getPlid, getPortalURL, getPortlet, getPortletInstanceId, getPortletRootId, getScopeGroup, getScopeGroupId, getScopeGroupUser, getServiceContext, getTheme, getThemeDisplay, getThemeImagesURL, getUser, getUserId, getUserRoles, userHasPortletPermission, userHasRole
 

Constructor Detail

LiferayFacesContext

public LiferayFacesContext()
Method Detail

getInstance

public static LiferayFacesContext getInstance()
Returns the implementation singleton instance.


setInstance

public static void setInstance(LiferayFacesContext liferayFacesContext)
Sets the implementation singleton instance.


addGlobalSuccessInfoMessage

public abstract void addGlobalSuccessInfoMessage()
Adds a global information message to the current FacesContext with the standard Liferay "your-request-processed-successfully" key as the messageId.


addGlobalUnexpectedErrorMessage

public abstract void addGlobalUnexpectedErrorMessage()
Adds a global error message to the current FacesContext with the standard Liferay "an-unexpected-error-occurred" key as the messageId.



Copyright © 2011 portletfaces.org. All Rights Reserved.