org.apache.myfaces.portlet
Class PortletUtil
java.lang.Object
org.apache.myfaces.portlet.PortletUtil
public class PortletUtil
extends java.lang.Object
Static utility class for portlet-related operations.
static boolean | isPortletRequest(FacesContext facesContext) - Determine if we are running as a portlet.
|
static boolean | isRenderResponse(FacesContext facesContext) - Determine if we are processing a portlet RenderResponse.
|
PORTLET_REQUEST_FLAG
public static final String PORTLET_REQUEST_FLAG
This flag is imbedded in the request.
It signifies to MyFaces that the request is coming from a portlet.
isPortletRequest
public static boolean isPortletRequest(FacesContext facesContext)
Determine if we are running as a portlet.
facesContext
- The current FacesContext.
true
if we are running as a portlet,
false
otherwise.
isRenderResponse
public static boolean isRenderResponse(FacesContext facesContext)
Determine if we are processing a portlet RenderResponse.
facesContext
- The current FacesContext.
true
if we are processing a RenderResponse,
false
otherwise.