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
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_TYPE
The component type.
|
COMPONENT_FAMILY
BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, 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, getParent, getRenderer, getRendererType, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent, visitTree
public static final String COMPONENT_TYPE
public void encodeBegin(FacesContext context) throws IOException
encodeBegin
in class UIComponentBase
IOException
Copyright © 2012–2015 OmniFaces. All rights reserved.