public final class FacesHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BROWSE_VIEW_ID
Root browse screen JSF view ID
|
| Modifier and Type | Method and Description |
|---|---|
static IComponentGenerator |
getComponentGenerator(javax.faces.context.FacesContext context,
java.lang.String generatorName)
Retrieves the named component generator implementation.
|
static javax.faces.context.FacesContext |
getFacesContext(java.lang.Object request,
java.lang.Object response,
java.lang.Object context)
Return a valid FacesContext for the specific context, request and response.
|
static javax.faces.context.FacesContext |
getFacesContext(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.ServletContext context)
Return a valid FacesContext for the specific context, request and response.
|
static javax.faces.context.FacesContext |
getFacesContext(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.ServletContext context,
java.lang.String viewRoot)
Return a valid FacesContext for the specific context, request and response.
|
static java.lang.Object |
getManagedBean(javax.faces.context.FacesContext fc,
java.lang.String name)
Return a JSF managed bean reference.
|
static java.lang.String |
makeLegalId(java.lang.String id)
Makes the given id a legal JSF component id by replacing illegal characters
with ISO9075 encoding - which itself a subset of valid HTML ID characters.
|
static void |
setupComponentId(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String id)
Sets up the id for the given component, if the id is null a unique one
is generated using the standard Faces algorithm.
|
public static final java.lang.String BROWSE_VIEW_ID
public static javax.faces.context.FacesContext getFacesContext(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.ServletContext context)
context - ServletContextrequest - ServletRequestresponse - ServletReponsepublic static javax.faces.context.FacesContext getFacesContext(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.ServletContext context,
java.lang.String viewRoot)
context - ServletContextrequest - ServletRequestresponse - ServletReponsepublic static javax.faces.context.FacesContext getFacesContext(java.lang.Object request,
java.lang.Object response,
java.lang.Object context)
context - PortletContextrequest - PortletRequestresponse - PortletResponsepublic static java.lang.Object getManagedBean(javax.faces.context.FacesContext fc,
java.lang.String name)
fc - FacesContextname - Name of the managed bean to returnpublic static void setupComponentId(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String id)
context - FacesContextcomponent - The component to set the id forid - The id to setpublic static java.lang.String makeLegalId(java.lang.String id)
id - The id to make legalpublic static IComponentGenerator getComponentGenerator(javax.faces.context.FacesContext context, java.lang.String generatorName)
context - FacesContextgeneratorName - The name of the component generator to retrieveCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.