public class ResourceInclude extends OutputFamily
The <o:resourceInclude>
component can be used to catch the output from a JSP or Servlet
resource and render it as output to the JSF writer. In effect, this allows you to include both Servlets and
JSP pages in e.g. Facelets.
Note that this isn't recommended as a lasting solution, but it might ease a migration from legacy JSP with smelly scriptlets and all on them to a more sane and modern Facelets application.
BufferedHttpServletResponse
,
HttpServletResponseOutputWrapper
,
ResettableBuffer
,
ResettableBufferedOutputStream
,
ResettableBufferedWriter
,
OutputFamily
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_TYPE
The component type.
|
COMPONENT_FAMILY
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
Constructor and Description |
---|
ResourceInclude() |
Modifier and Type | Method and Description |
---|---|
void |
encodeBegin(FacesContext context)
Create a dispatcher for the resource given by the component's path attribute, catch its output and write it to
the JSF response writer.
|
getFamily, getRendersChildren
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
public static final String COMPONENT_TYPE
public void encodeBegin(FacesContext context) throws IOException
encodeBegin
in class UIComponentBase
IOException
Copyright © 2012–2016 OmniFaces. All rights reserved.