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 | 
|---|---|
protected static String | 
CHOICE_FACET_NAME  | 
static String | 
COMPONENT_FAMILY  | 
static String | 
COMPONENT_TYPE  | 
protected static String | 
DEFAULT_DOWNLOAD_FACET_NAME  | 
protected static String | 
DOWNLOAD_FACET_NAME  | 
protected static String | 
EDIT_FILENAME_FACET_NAME  | 
protected Boolean | 
editFilename  | 
protected String | 
filename  | 
protected static org.apache.commons.logging.Log | 
log  | 
protected String | 
onchange  | 
protected String | 
onclick  | 
protected String | 
onselect  | 
protected static String | 
UPLOAD_FACET_NAME  | 
protected JSFBlobUploaderService | 
uploaderService  | 
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)  | 
protected List<String> | 
getAvailableChoices(Blob blob,
                   boolean temp)  | 
Blob | 
getCurrentBlob()  | 
String | 
getCurrentFilename()  | 
Boolean | 
getEditFilename()  | 
InputFileInfo | 
getFileInfoLocalValue()  | 
InputFileInfo | 
getFileInfoSubmittedValue()  | 
InputFileInfo | 
getFileInfoValue()  | 
String | 
getFilename()  | 
String | 
getOnchange()  | 
String | 
getOnclick()  | 
String | 
getOnselect()  | 
String | 
getRendererType()  | 
protected String | 
getStringValue(String name,
              String defaultValue)  | 
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, compareValues, getConvertedValue, 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, validateValuegetConverter, getLocalValue, setConverteraddClientBehavior, addFacesListener, broadcast, 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, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTreepublic static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
protected static final String CHOICE_FACET_NAME
protected static final String UPLOAD_FACET_NAME
protected static final String DEFAULT_DOWNLOAD_FACET_NAME
protected static final String DOWNLOAD_FACET_NAME
protected static final String EDIT_FILENAME_FACET_NAME
protected static final org.apache.commons.logging.Log log
protected final JSFBlobUploaderService uploaderService
protected Boolean editFilename
public UIInputFile()
public String getRendererType()
getRendererType in class javax.faces.component.UIComponentBasepublic Object getValue()
InputFileInfo structure is given instead of the "value" attribute resolution.getValue in interface javax.faces.component.ValueHoldergetValue in class javax.faces.component.UIInputpublic String getFilename()
public void setFilename(String filename)
public Boolean getEditFilename()
public void setEditFilename(Boolean editFilename)
public InputFileInfo getFileInfoValue()
public InputFileInfo getFileInfoLocalValue()
public InputFileInfo getFileInfoSubmittedValue()
protected String getStringValue(String name, String defaultValue)
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.UIInputpublic void validate(javax.faces.context.FacesContext context)
validate in class javax.faces.component.UIInputpublic 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.UIInputprotected List<String> getAvailableChoices(Blob blob, boolean temp)
public Blob getCurrentBlob()
public String getCurrentFilename()
public void encodeBegin(javax.faces.context.FacesContext context) throws IOException
encodeBegin in class javax.faces.component.UIComponentBaseIOExceptionpublic Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.UIInputpublic void restoreState(javax.faces.context.FacesContext context, Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UIInputCopyright © 2019 Nuxeo. All rights reserved.