Package jakarta.faces.component.html
Class HtmlInputFile
- java.lang.Object
- 
- jakarta.faces.component.UIComponent
- 
- jakarta.faces.component.UIComponentBase
- 
- jakarta.faces.component.UIOutput
- 
- jakarta.faces.component.UIInput
- 
- jakarta.faces.component.html.HtmlInputFile
 
 
 
 
 
- 
- All Implemented Interfaces:
- ClientBehaviorHolder,- EditableValueHolder,- PartialStateHolder,- StateHolder,- TransientStateHolder,- ValueHolder,- ComponentSystemEventListener,- FacesListener,- SystemEventListenerHolder,- EventListener
 
 public class HtmlInputFile extends UIInput implements ClientBehaviorHolder 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected static classHtmlInputFile.PropertyKeys
 - 
Field SummaryFields Modifier and Type Field Description static StringCOMPONENT_FAMILYstatic StringCOMPONENT_TYPE- 
Fields inherited from class jakarta.faces.component.UIInputALWAYS_PERFORM_VALIDATION_WHEN_REQUIRED_IS_TRUE, CONVERSION_MESSAGE_ID, EMPTY_STRING_AS_NULL_PARAM_NAME, REQUIRED_MESSAGE_ID, UPDATE_MESSAGE_ID, VALIDATE_EMPTY_FIELDS_PARAM_NAME
 - 
Fields inherited from class jakarta.faces.component.UIComponentATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, FACETS_KEY, VIEW_LOCATION_KEY
 
- 
 - 
Constructor SummaryConstructors Constructor Description HtmlInputFile()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddClientBehavior(String eventName, ClientBehavior behavior)StringgetAccept()StringgetAccesskey()StringgetAlt()Deprecated, for removal: This API element is subject to removal in a future version.StringgetAutocomplete()Deprecated, for removal: This API element is subject to removal in a future version.StringgetDefaultEventName()StringgetDir()Collection<String>getEventNames()StringgetFamily()StringgetLabel()StringgetLang()intgetMaxlength()Deprecated, for removal: This API element is subject to removal in a future version.StringgetOnblur()StringgetOnchange()StringgetOnclick()StringgetOndblclick()StringgetOnfocus()StringgetOnkeydown()StringgetOnkeypress()StringgetOnkeyup()StringgetOnmousedown()StringgetOnmousemove()StringgetOnmouseout()StringgetOnmouseover()StringgetOnmouseup()StringgetOnselect()StringgetRole()intgetSize()Deprecated, for removal: This API element is subject to removal in a future version.StringgetStyle()StringgetStyleClass()StringgetTabindex()StringgetTitle()booleanisDisabled()booleanisMultiple()booleanisReadonly()Deprecated, for removal: This API element is subject to removal in a future version.voidsetAccept(String accept)voidsetAccesskey(String accesskey)voidsetAlt(String alt)Deprecated, for removal: This API element is subject to removal in a future version.voidsetAutocomplete(String autocomplete)Deprecated, for removal: This API element is subject to removal in a future version.voidsetDir(String dir)voidsetDisabled(boolean disabled)voidsetLabel(String label)voidsetLang(String lang)voidsetMaxlength(int maxlength)Deprecated, for removal: This API element is subject to removal in a future version.voidsetMultiple(boolean multiple)voidsetOnblur(String onblur)voidsetOnchange(String onchange)voidsetOnclick(String onclick)voidsetOndblclick(String ondblclick)voidsetOnfocus(String onfocus)voidsetOnkeydown(String onkeydown)voidsetOnkeypress(String onkeypress)voidsetOnkeyup(String onkeyup)voidsetOnmousedown(String onmousedown)voidsetOnmousemove(String onmousemove)voidsetOnmouseout(String onmouseout)voidsetOnmouseover(String onmouseover)voidsetOnmouseup(String onmouseup)voidsetOnselect(String onselect)voidsetReadonly(boolean readonly)Deprecated, for removal: This API element is subject to removal in a future version.voidsetRole(String role)voidsetSize(int size)Deprecated, for removal: This API element is subject to removal in a future version.voidsetStyle(String style)voidsetStyleClass(String styleClass)voidsetTabindex(String tabindex)voidsetTitle(String title)voidsetValueExpression(String name, jakarta.el.ValueExpression expression)protected voidvalidateValue(FacesContext context, Object convertedValue)- 
Methods inherited from class jakarta.faces.component.UIInputaddValidator, addValueChangeListener, broadcast, clearInitialState, compareValues, decode, getConvertedValue, getConverterMessage, getRequiredMessage, getSubmittedValue, getValidatorMessage, getValidators, getValue, getValueChangeListeners, isEmpty, isImmediate, isLocalValueSet, isRequired, isValid, markInitialState, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, resetValue, restoreState, saveState, setConverterMessage, setImmediate, setLocalValueSet, setRequired, setRequiredMessage, setSubmittedValue, setValid, setValidatorMessage, setValue, updateModel, validate
 - 
Methods inherited from class jakarta.faces.component.UIOutputgetConverter, getLocalValue, setConverter
 - 
Methods inherited from class jakarta.faces.component.UIComponentBaseaddFacesListener, encodeAll, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, visitTree
 - 
Methods inherited from class jakarta.faces.component.UIComponentgetClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, subscribeToEvent, unsubscribeFromEvent
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface jakarta.faces.component.behavior.ClientBehaviorHoldergetClientBehaviors
 - 
Methods inherited from interface jakarta.faces.component.ValueHoldergetConverter, getLocalValue, setConverter
 
- 
 
- 
- 
- 
Field Detail- 
COMPONENT_FAMILYpublic static final String COMPONENT_FAMILY - See Also:
- Constant Field Values
 
 - 
COMPONENT_TYPEpublic static final String COMPONENT_TYPE - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
validateValueprotected void validateValue(FacesContext context, Object convertedValue) - Overrides:
- validateValuein class- UIInput
 
 - 
getEventNamespublic Collection<String> getEventNames() - Specified by:
- getEventNamesin interface- ClientBehaviorHolder
- Overrides:
- getEventNamesin class- UIComponentBase
 
 - 
addClientBehaviorpublic void addClientBehavior(String eventName, ClientBehavior behavior) - Specified by:
- addClientBehaviorin interface- ClientBehaviorHolder
- Overrides:
- addClientBehaviorin class- UIComponentBase
 
 - 
getDefaultEventNamepublic String getDefaultEventName() - Specified by:
- getDefaultEventNamein interface- ClientBehaviorHolder
- Overrides:
- getDefaultEventNamein class- UIComponentBase
 
 - 
getMaxlength@Deprecated(since="4.0", forRemoval=true) public int getMaxlength() Deprecated, for removal: This API element is subject to removal in a future version.
 - 
setMaxlength@Deprecated(since="4.0", forRemoval=true) public void setMaxlength(int maxlength) Deprecated, for removal: This API element is subject to removal in a future version.
 - 
getSize@Deprecated(since="4.0", forRemoval=true) public int getSize() Deprecated, for removal: This API element is subject to removal in a future version.
 - 
setSize@Deprecated(since="4.0", forRemoval=true) public void setSize(int size) Deprecated, for removal: This API element is subject to removal in a future version.
 - 
getAutocomplete@Deprecated(since="4.0", forRemoval=true) public String getAutocomplete() Deprecated, for removal: This API element is subject to removal in a future version.
 - 
setAutocomplete@Deprecated(since="4.0", forRemoval=true) public void setAutocomplete(String autocomplete) Deprecated, for removal: This API element is subject to removal in a future version.
 - 
getAcceptpublic String getAccept() 
 - 
setAcceptpublic void setAccept(String accept) 
 - 
isMultiplepublic boolean isMultiple() 
 - 
setMultiplepublic void setMultiple(boolean multiple) 
 - 
getAccesskeypublic String getAccesskey() 
 - 
setAccesskeypublic void setAccesskey(String accesskey) 
 - 
getOnselectpublic String getOnselect() 
 - 
setOnselectpublic void setOnselect(String onselect) 
 - 
isDisabledpublic boolean isDisabled() 
 - 
setDisabledpublic void setDisabled(boolean disabled) 
 - 
isReadonly@Deprecated(since="4.0", forRemoval=true) public boolean isReadonly() Deprecated, for removal: This API element is subject to removal in a future version.
 - 
setReadonly@Deprecated(since="4.0", forRemoval=true) public void setReadonly(boolean readonly) Deprecated, for removal: This API element is subject to removal in a future version.
 - 
getOnclickpublic String getOnclick() 
 - 
setOnclickpublic void setOnclick(String onclick) 
 - 
getOndblclickpublic String getOndblclick() 
 - 
setOndblclickpublic void setOndblclick(String ondblclick) 
 - 
getOnkeydownpublic String getOnkeydown() 
 - 
setOnkeydownpublic void setOnkeydown(String onkeydown) 
 - 
getOnkeypresspublic String getOnkeypress() 
 - 
setOnkeypresspublic void setOnkeypress(String onkeypress) 
 - 
getOnkeyuppublic String getOnkeyup() 
 - 
setOnkeyuppublic void setOnkeyup(String onkeyup) 
 - 
getOnmousedownpublic String getOnmousedown() 
 - 
setOnmousedownpublic void setOnmousedown(String onmousedown) 
 - 
getOnmousemovepublic String getOnmousemove() 
 - 
setOnmousemovepublic void setOnmousemove(String onmousemove) 
 - 
getOnmouseoutpublic String getOnmouseout() 
 - 
setOnmouseoutpublic void setOnmouseout(String onmouseout) 
 - 
getOnmouseoverpublic String getOnmouseover() 
 - 
setOnmouseoverpublic void setOnmouseover(String onmouseover) 
 - 
getOnmouseuppublic String getOnmouseup() 
 - 
setOnmouseuppublic void setOnmouseup(String onmouseup) 
 - 
getStylepublic String getStyle() 
 - 
setStylepublic void setStyle(String style) 
 - 
getStyleClasspublic String getStyleClass() 
 - 
setStyleClasspublic void setStyleClass(String styleClass) 
 - 
getRolepublic String getRole() 
 - 
setRolepublic void setRole(String role) 
 - 
getLabelpublic String getLabel() 
 - 
setLabelpublic void setLabel(String label) 
 - 
getAlt@Deprecated(since="4.0", forRemoval=true) public String getAlt() Deprecated, for removal: This API element is subject to removal in a future version.
 - 
setAlt@Deprecated(since="4.0", forRemoval=true) public void setAlt(String alt) Deprecated, for removal: This API element is subject to removal in a future version.
 - 
getDirpublic String getDir() 
 - 
setDirpublic void setDir(String dir) 
 - 
getLangpublic String getLang() 
 - 
setLangpublic void setLang(String lang) 
 - 
getTitlepublic String getTitle() 
 - 
setTitlepublic void setTitle(String title) 
 - 
getOnblurpublic String getOnblur() 
 - 
setOnblurpublic void setOnblur(String onblur) 
 - 
getOnfocuspublic String getOnfocus() 
 - 
setOnfocuspublic void setOnfocus(String onfocus) 
 - 
getTabindexpublic String getTabindex() 
 - 
setTabindexpublic void setTabindex(String tabindex) 
 - 
getOnchangepublic String getOnchange() 
 - 
setOnchangepublic void setOnchange(String onchange) 
 - 
setValueExpressionpublic void setValueExpression(String name, jakarta.el.ValueExpression expression) - Overrides:
- setValueExpressionin class- UIComponent
 
 
- 
 
-