public class UIOutputFile extends javax.faces.component.UIOutput implements javax.faces.component.NamingContainer
Attribute named value is the file to be displayed. Its submitted value as well as filename are handled by sub components in facets. Rendering is handled here.
If convertAction and editOnlineAction method bindings are set, corresponding links are rendered. The editOnlineActionRendered is used to filter action visibility.
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
Constructor and Description |
---|
UIOutputFile() |
Modifier and Type | Method and Description |
---|---|
void |
encodeBegin(javax.faces.context.FacesContext context) |
void |
encodeFileIcon(javax.faces.context.FacesContext context,
Blob blob) |
protected javax.el.ValueExpression |
getBlobExpression(javax.faces.context.FacesContext context) |
javax.el.MethodExpression |
getConvertAction() |
String |
getDownloadLabel() |
protected String |
getDownloadLinkValue(javax.faces.context.FacesContext context,
Blob blob,
String filename) |
javax.el.MethodExpression |
getEditOnlineAction() |
Boolean |
getEditOnlineActionRendered() |
String |
getFilename() |
protected javax.el.ValueExpression |
getFileNameExpression(javax.faces.context.FacesContext context) |
Boolean |
getIconRendered() |
Boolean |
getQueryParent() |
String |
getRendererType() |
String |
getSeparator() |
Object |
getValue() |
void |
restoreState(javax.faces.context.FacesContext context,
Object state) |
Object |
saveState(javax.faces.context.FacesContext context) |
void |
setConvertAction(javax.el.MethodExpression convertToPdfAction) |
void |
setDownloadLabel(String downloadLabel) |
void |
setEditOnlineAction(javax.el.MethodExpression editOnlineAction) |
void |
setEditOnlineActionRendered(Boolean editOnlineActionRendered) |
void |
setFilename(String filename) |
void |
setIconRendered(Boolean iconRendered) |
void |
setQueryParent(Boolean queryParent) |
void |
setSeparator(String actionsSeparator) |
clearInitialState, getConverter, getFamily, getLocalValue, markInitialState, resetValue, setConverter, setValue
addClientBehavior, addFacesListener, broadcast, decode, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, 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 static final String COMPONENT_FAMILY
public UIOutputFile()
public String getRendererType()
getRendererType
in class javax.faces.component.UIComponentBase
public Object getValue()
getValue
in interface javax.faces.component.ValueHolder
getValue
in class javax.faces.component.UIOutput
public String getFilename()
public void setFilename(String filename)
public javax.el.MethodExpression getConvertAction()
public void setConvertAction(javax.el.MethodExpression convertToPdfAction)
public javax.el.MethodExpression getEditOnlineAction()
public void setEditOnlineAction(javax.el.MethodExpression editOnlineAction)
public Boolean getEditOnlineActionRendered()
public void setEditOnlineActionRendered(Boolean editOnlineActionRendered)
public String getSeparator()
public Boolean getQueryParent()
public void setQueryParent(Boolean queryParent)
public void setSeparator(String actionsSeparator)
public String getDownloadLabel()
public void setDownloadLabel(String downloadLabel)
public Boolean getIconRendered()
public void setIconRendered(Boolean iconRendered)
protected javax.el.ValueExpression getBlobExpression(javax.faces.context.FacesContext context)
protected javax.el.ValueExpression getFileNameExpression(javax.faces.context.FacesContext context)
protected String getDownloadLinkValue(javax.faces.context.FacesContext context, Blob blob, String filename)
public void encodeBegin(javax.faces.context.FacesContext context) throws IOException
encodeBegin
in class javax.faces.component.UIComponentBase
IOException
public void encodeFileIcon(javax.faces.context.FacesContext context, Blob blob) throws IOException
IOException
public Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.UIOutput
public void restoreState(javax.faces.context.FacesContext context, Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.component.UIOutput
Copyright © 2016 Nuxeo SA. All rights reserved.