|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.context.FacesContext
org.apache.myfaces.webapp.filter.TomahawkFacesContextWrapper
public class TomahawkFacesContextWrapper
This class acts as an alternative to ExtensionsFilter feature.
It wraps the FacesContext using TomahawkFacesContextFactory. See this class for parameters and additional information
If ExtensionsFilter is used on servlet environment, this wrapper is
not used. You can set this wrapper using the following configuration:
Remember map the FacesServet to the org.apache.myfaces.RESOURCE_VIRTUAL_PATH value (default /faces/myFacesExtensionResource, so map FacesServlet to /faces/* could be used or better /faces/myFacesExtensionResource/*) so the ServeResourcePhaseListener can serve resources.
One use that has this wrapper is in portlets (there is no PortletFilter on portlet api 1.0, so to take all tomahawk advantages (components that uses some javascript handled by AddResource api and fileupload support) users must configure this alternative.
When it is used this alternative, the params used to configure MultipartRequestWrapper (file upload support) are set using this web.xml config params:
| Constructor Summary | |
|---|---|
TomahawkFacesContextWrapper(javax.faces.context.FacesContext delegate)
|
|
TomahawkFacesContextWrapper(javax.faces.context.FacesContext delegate,
ExtensionsResponseWrapper extensionsResponseWrapper)
|
|
| Method Summary | |
|---|---|
void |
addMessage(String clientId,
javax.faces.application.FacesMessage message)
|
javax.faces.application.Application |
getApplication()
|
Iterator |
getClientIdsWithMessages()
|
javax.el.ELContext |
getELContext()
This method uses reflection to call the method of the delegated FacesContext getELContext, present on 1.2. |
javax.faces.context.ExternalContext |
getExternalContext()
|
javax.faces.application.FacesMessage.Severity |
getMaximumSeverity()
|
Iterator |
getMessages()
|
Iterator |
getMessages(String clientId)
|
javax.faces.render.RenderKit |
getRenderKit()
|
boolean |
getRenderResponse()
|
boolean |
getResponseComplete()
|
javax.faces.context.ResponseStream |
getResponseStream()
|
javax.faces.context.ResponseWriter |
getResponseWriter()
|
javax.faces.component.UIViewRoot |
getViewRoot()
|
boolean |
isValidContentType(String contentType)
|
void |
release()
|
void |
renderResponse()
|
void |
responseComplete()
|
void |
setExternalContext(javax.faces.context.ExternalContext extContext)
|
void |
setResponseStream(javax.faces.context.ResponseStream responseStream)
|
void |
setResponseWriter(javax.faces.context.ResponseWriter responseWriter)
|
void |
setViewRoot(javax.faces.component.UIViewRoot root)
|
| Methods inherited from class javax.faces.context.FacesContext |
|---|
getAttributes, getCurrentInstance, getCurrentPhaseId, getExceptionHandler, getMessageList, getMessageList, getPartialViewContext, isPostback, isProcessingEvents, isProjectStage, isValidationFailed, setCurrentInstance, setCurrentPhaseId, setExceptionHandler, setProcessingEvents, validationFailed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TomahawkFacesContextWrapper(javax.faces.context.FacesContext delegate)
public TomahawkFacesContextWrapper(javax.faces.context.FacesContext delegate,
ExtensionsResponseWrapper extensionsResponseWrapper)
| Method Detail |
|---|
public javax.el.ELContext getELContext()
getELContext in class javax.faces.context.FacesContextpublic javax.faces.application.Application getApplication()
getApplication in class javax.faces.context.FacesContextpublic Iterator getClientIdsWithMessages()
getClientIdsWithMessages in class javax.faces.context.FacesContextpublic javax.faces.context.ExternalContext getExternalContext()
getExternalContext in class javax.faces.context.FacesContextpublic javax.faces.application.FacesMessage.Severity getMaximumSeverity()
getMaximumSeverity in class javax.faces.context.FacesContextpublic Iterator getMessages()
getMessages in class javax.faces.context.FacesContextpublic Iterator getMessages(String clientId)
getMessages in class javax.faces.context.FacesContextpublic javax.faces.render.RenderKit getRenderKit()
getRenderKit in class javax.faces.context.FacesContextpublic boolean getRenderResponse()
getRenderResponse in class javax.faces.context.FacesContextpublic boolean getResponseComplete()
getResponseComplete in class javax.faces.context.FacesContextpublic javax.faces.context.ResponseStream getResponseStream()
getResponseStream in class javax.faces.context.FacesContextpublic void setResponseStream(javax.faces.context.ResponseStream responseStream)
setResponseStream in class javax.faces.context.FacesContextpublic javax.faces.context.ResponseWriter getResponseWriter()
getResponseWriter in class javax.faces.context.FacesContextpublic void setResponseWriter(javax.faces.context.ResponseWriter responseWriter)
setResponseWriter in class javax.faces.context.FacesContextpublic javax.faces.component.UIViewRoot getViewRoot()
getViewRoot in class javax.faces.context.FacesContextpublic void setViewRoot(javax.faces.component.UIViewRoot root)
setViewRoot in class javax.faces.context.FacesContext
public void addMessage(String clientId,
javax.faces.application.FacesMessage message)
addMessage in class javax.faces.context.FacesContextpublic void release()
release in class javax.faces.context.FacesContextpublic boolean isValidContentType(String contentType)
public void renderResponse()
renderResponse in class javax.faces.context.FacesContextpublic void responseComplete()
responseComplete in class javax.faces.context.FacesContextpublic void setExternalContext(javax.faces.context.ExternalContext extContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||