public final class PortletUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
ensureEncoding(javax.faces.context.FacesContext facesContext) |
static Object |
getAttributeFromSessionForApplication(Object session,
String name) |
static String |
getViewId(javax.faces.context.FacesContext facesContext) |
static boolean |
isPortletRequest(javax.faces.context.FacesContext facesContext)
Determine if we are running as a portlet.
|
static boolean |
isRenderResponse(javax.faces.context.FacesContext facesContext)
Determine if we are processing a portlet RenderResponse.
|
static String |
setViewIdForUrl(javax.faces.context.FacesContext facesContext,
String viewId) |
public static boolean isRenderResponse(javax.faces.context.FacesContext facesContext)
facesContext
- The current FacesContext.true
if we are processing a RenderResponse,
false
otherwise.public static boolean isPortletRequest(javax.faces.context.FacesContext facesContext)
facesContext
- The current FacesContext.true
if we are running as a portlet,
false
otherwise.public static String getViewId(javax.faces.context.FacesContext facesContext)
public static String setViewIdForUrl(javax.faces.context.FacesContext facesContext, String viewId)
public static void ensureEncoding(javax.faces.context.FacesContext facesContext) throws UnsupportedEncodingException
UnsupportedEncodingException
Copyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.