|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.web.app.servlet.FacesHelper
public final class FacesHelper
Field Summary | |
---|---|
static java.lang.String |
BROWSE_VIEW_ID
Root browse screen JSF view ID |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BROWSE_VIEW_ID
Method Detail |
---|
public static javax.faces.context.FacesContext getFacesContext(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.ServletContext context)
context
- ServletContextrequest
- ServletRequestresponse
- ServletReponse
public 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
- ServletReponse
public static javax.faces.context.FacesContext getFacesContext(java.lang.Object request, java.lang.Object response, java.lang.Object context)
context
- PortletContextrequest
- PortletRequestresponse
- PortletResponse
public static java.lang.Object getManagedBean(javax.faces.context.FacesContext fc, java.lang.String name)
fc
- FacesContextname
- Name of the managed bean to return
public 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 legal
public static IComponentGenerator getComponentGenerator(javax.faces.context.FacesContext context, java.lang.String generatorName)
context
- FacesContextgeneratorName
- The name of the component generator to retrieve
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |