public final class

PortletUtils

extends Object
java.lang.Object
   ↳ org.apache.myfaces.tobago.portlet.PortletUtils

Class Overview

Static utility class for portlet-related operations.

Summary

Public Methods
static void ensureEncoding(FacesContext facesContext)
static String getViewId(FacesContext facesContext)
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.
static String setViewIdForUrl(FacesContext facesContext, String viewId)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void ensureEncoding (FacesContext facesContext)

public static String getViewId (FacesContext facesContext)

public static boolean isPortletRequest (FacesContext facesContext)

Determine if we are running as a portlet.

Parameters
facesContext The current FacesContext.
Returns
  • true if we are running as a portlet, false otherwise.

public static boolean isRenderResponse (FacesContext facesContext)

Determine if we are processing a portlet RenderResponse.

Parameters
facesContext The current FacesContext.
Returns
  • true if we are processing a RenderResponse, false otherwise.

public static String setViewIdForUrl (FacesContext facesContext, String viewId)

Returns
  • The action url.