|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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 |
---|
getCurrentInstance, setCurrentInstance |
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()
public javax.faces.application.Application getApplication()
getApplication
in class javax.faces.context.FacesContext
public Iterator getClientIdsWithMessages()
getClientIdsWithMessages
in class javax.faces.context.FacesContext
public javax.faces.context.ExternalContext getExternalContext()
getExternalContext
in class javax.faces.context.FacesContext
public javax.faces.application.FacesMessage.Severity getMaximumSeverity()
getMaximumSeverity
in class javax.faces.context.FacesContext
public Iterator getMessages()
getMessages
in class javax.faces.context.FacesContext
public Iterator getMessages(String clientId)
getMessages
in class javax.faces.context.FacesContext
public javax.faces.render.RenderKit getRenderKit()
getRenderKit
in class javax.faces.context.FacesContext
public boolean getRenderResponse()
getRenderResponse
in class javax.faces.context.FacesContext
public boolean getResponseComplete()
getResponseComplete
in class javax.faces.context.FacesContext
public javax.faces.context.ResponseStream getResponseStream()
getResponseStream
in class javax.faces.context.FacesContext
public void setResponseStream(javax.faces.context.ResponseStream responseStream)
setResponseStream
in class javax.faces.context.FacesContext
public javax.faces.context.ResponseWriter getResponseWriter()
getResponseWriter
in class javax.faces.context.FacesContext
public void setResponseWriter(javax.faces.context.ResponseWriter responseWriter)
setResponseWriter
in class javax.faces.context.FacesContext
public javax.faces.component.UIViewRoot getViewRoot()
getViewRoot
in class javax.faces.context.FacesContext
public 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.FacesContext
public void release()
release
in class javax.faces.context.FacesContext
public boolean isValidContentType(String contentType)
public void renderResponse()
renderResponse
in class javax.faces.context.FacesContext
public void responseComplete()
responseComplete
in class javax.faces.context.FacesContext
public void setExternalContext(javax.faces.context.ExternalContext extContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |