public class UIInputFile
extends javax.faces.component.UIInput
implements javax.faces.component.NamingContainer
Attribute value is the file to be uploaded. Its submitted value as well as filename are handled by sub components. Rendering and validation of subcomponents are handled here.
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID, VALIDATE_EMPTY_FIELDS_PARAM_NAME
Constructor and Description |
---|
UIInputFile() |
Modifier and Type | Method and Description |
---|---|
void |
decode(javax.faces.context.FacesContext context) |
void |
encodeBegin(javax.faces.context.FacesContext context) |
Blob |
getCurrentBlob() |
String |
getCurrentFilename() |
Boolean |
getEditFilename() |
InputFileInfo |
getFileInfoLocalValue() |
InputFileInfo |
getFileInfoSubmittedValue() |
InputFileInfo |
getFileInfoValue() |
String |
getFilename() |
String |
getOnchange() |
String |
getOnclick() |
String |
getOnselect() |
String |
getRendererType() |
Object |
getValue()
Override value so that an
InputFileInfo structure is given instead of the "value" attribute resolution. |
void |
restoreState(javax.faces.context.FacesContext context,
Object state) |
Object |
saveState(javax.faces.context.FacesContext context) |
void |
setEditFilename(Boolean editFilename) |
void |
setFilename(String filename) |
void |
setOnchange(String onchange) |
void |
setOnclick(String onclick) |
void |
setOnselect(String onselect) |
void |
updateFilename(javax.faces.context.FacesContext context,
String newFilename) |
void |
updateModel(javax.faces.context.FacesContext context) |
void |
validate(javax.faces.context.FacesContext context)
Process validation.
|
void |
validateFilename(javax.faces.context.FacesContext context,
InputFileInfo submitted) |
addValidator, addValueChangeListener, clearInitialState, getConverterMessage, getFamily, getRequiredMessage, getSubmittedValue, getValidator, getValidatorMessage, getValidators, getValueChangeListener, getValueChangeListeners, isEmpty, isImmediate, isLocalValueSet, isRequired, isValid, markInitialState, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, resetValue, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidator, setValidatorMessage, setValue, setValueChangeListener
getConverter, getLocalValue, setConverter
addClientBehavior, broadcast, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
public static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
public String getRendererType()
getRendererType
in class javax.faces.component.UIComponentBase
public Object getValue()
InputFileInfo
structure is given instead of the "value" attribute resolution.getValue
in interface javax.faces.component.ValueHolder
getValue
in class javax.faces.component.UIInput
public String getFilename()
public void setFilename(String filename)
public Boolean getEditFilename()
public void setEditFilename(Boolean editFilename)
public InputFileInfo getFileInfoValue()
public InputFileInfo getFileInfoLocalValue()
public InputFileInfo getFileInfoSubmittedValue()
public String getOnchange()
public void setOnchange(String onchange)
public String getOnclick()
public void setOnclick(String onclick)
public String getOnselect()
public void setOnselect(String onselect)
public void decode(javax.faces.context.FacesContext context)
decode
in class javax.faces.component.UIInput
public void validate(javax.faces.context.FacesContext context)
validate
in class javax.faces.component.UIInput
public void validateFilename(javax.faces.context.FacesContext context, InputFileInfo submitted)
public void updateFilename(javax.faces.context.FacesContext context, String newFilename)
public void updateModel(javax.faces.context.FacesContext context)
updateModel
in class javax.faces.component.UIInput
public Blob getCurrentBlob()
public String getCurrentFilename()
public void encodeBegin(javax.faces.context.FacesContext context) throws IOException
encodeBegin
in class javax.faces.component.UIComponentBase
IOException
public Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.UIInput
public void restoreState(javax.faces.context.FacesContext context, Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.component.UIInput
Copyright © 2015 Nuxeo SA. All rights reserved.