Top Description Inners Fields Constructors Methods
jakarta.faces.component.html

public Class HtmlInputFile

extends UIInput
implements ClientBehaviorHolder
Class Inheritance
All Implemented Interfaces
jakarta.faces.component.behavior.ClientBehaviorHolder
Static Imports
jakarta.faces.component.html.HtmlComponentUtils.handleAttribute

Represents an HTML input element of type file.

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected static enum
HtmlInputFile.PropertyKeys

Properties used by this component

Field Summary

Modifier and TypeField and Description
public static final String
COMPONENT_TYPE

Hides jakarta.faces.component.UIInput.COMPONENT_TYPE.

The standard component type for this component.

private static final Collection<String>
Inherited from jakarta.faces.component.UIInput:
ALWAYS_PERFORM_VALIDATION_WHEN_REQUIRED_IS_TRUECOMPONENT_FAMILYCONVERSION_MESSAGE_IDEMPTY_STRING_AS_NULL_PARAM_NAMEREQUIRED_MESSAGE_IDUPDATE_MESSAGE_IDVALIDATE_EMPTY_FIELDS_PARAM_NAME

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the value of the property
getAccept
()

Return the value of the accept property.

public String

Returns:

the value of the property
getAccesskey
()

Return the value of the accesskey property.

public String

Returns:

the value of the property
getAlt
()
Deprecated for removal since 4.0. This attribute is actually not specified in HTML. Do not use it on this component.

Return the value of the alt property.

public String

Returns:

the value of the property
getAutocomplete
()
Deprecated for removal since 4.0. This attribute is actually not specified in HTML. Do not use it on this component.

Return the value of the autocomplete property.

public String
getDefaultEventName()

Overrides jakarta.faces.component.UIComponentBase.getDefaultEventName.

Implements jakarta.faces.component.behavior.ClientBehaviorHolder.getDefaultEventName.

Returns the default event name for this ClientBehaviorHolder implementation.

public String

Returns:

the value of the property
getDir
()

Return the value of the dir property.

public Collection<String>
getEventNames()

Overrides jakarta.faces.component.UIComponentBase.getEventNames.

Implements jakarta.faces.component.behavior.ClientBehaviorHolder.getEventNames.

Returns a non-null, unmodifiable Collection containing the names of the logical events supported by the component implementing this interface.

public String

Returns:

the value of the property
getLabel
()

Return the value of the label property.

public String

Returns:

the value of the property
getLang
()

Return the value of the lang property.

public int

Returns:

the value of the property
getMaxlength
()
Deprecated for removal since 4.0. This attribute is actually not specified in HTML. Do not use it on this component.

Return the value of the maxlength property.

public String

Returns:

the value of the property
getOnblur
()

Return the value of the onblur property.

public String

Returns:

the value of the property
getOnchange
()

Return the value of the onchange property.

public String

Returns:

the value of the property
getOnclick
()

Return the value of the onclick property.

public String

Returns:

the value of the property
getOndblclick
()

Return the value of the ondblclick property.

public String

Returns:

the value of the property
getOnfocus
()

Return the value of the onfocus property.

public String

Returns:

the value of the property
getOnkeydown
()

Return the value of the onkeydown property.

public String

Returns:

the value of the property
getOnkeypress
()

Return the value of the onkeypress property.

public String

Returns:

the value of the property
getOnkeyup
()

Return the value of the onkeyup property.

public String

Returns:

the value of the property
getOnmousedown
()

Return the value of the onmousedown property.

public String

Returns:

the value of the property
getOnmousemove
()

Return the value of the onmousemove property.

public String

Returns:

the value of the property
getOnmouseout
()

Return the value of the onmouseout property.

public String

Returns:

the value of the property
getOnmouseover
()

Return the value of the onmouseover property.

public String

Returns:

the value of the property
getOnmouseup
()

Return the value of the onmouseup property.

public String

Returns:

the value of the property
getOnselect
()

Return the value of the onselect property.

public String

Returns:

the value of the property
getRole
()

Return the value of the role property.

public int

Returns:

the value of the property
getSize
()
Deprecated for removal since 4.0. This attribute is actually not specified in HTML. Do not use it on this component.

Return the value of the size property.

public String

Returns:

the value of the property
getStyle
()

Return the value of the style property.

public String

Returns:

the value of the property
getStyleClass
()

Return the value of the styleClass property.

public String

Returns:

the value of the property
getTabindex
()

Return the value of the tabindex property.

public String

Returns:

the value of the property
getTitle
()

Return the value of the title property.

public boolean

Returns:

the value of the property
isDisabled
()

Return the value of the disabled property.

public boolean

Returns:

the value of the property
isMultiple
()

Return the value of the multiple property.

public boolean

Returns:

the value of the property
isReadonly
()
Deprecated for removal since 4.0. This attribute is actually not specified in HTML. Do not use it on this component.

Return the value of the readonly property.

public void
setAccept(String
the new property value
accept
)

Set the value of the accept property.

public void
setAccesskey(String
the new property value
accesskey
)

Set the value of the accesskey property.

public void
setAlt(String
the new property value
alt
)
Deprecated for removal since 4.0. This attribute is actually not specified in HTML. Do not use it on this component.

Set the value of the alt property.

public void
setAutocomplete(String
the new property value
autocomplete
)
Deprecated for removal since 4.0. This attribute is actually not specified in HTML. Do not use it on this component.

Set the value of the autocomplete property.

public void
setDir(String
the new property value
dir
)

Set the value of the dir property.

public void
setDisabled(boolean
the new property value
disabled
)

Set the value of the disabled property.

public void
setLabel(String
the new property value
label
)

Set the value of the label property.

public void
setLang(String
the new property value
lang
)

Set the value of the lang property.

public void
setMaxlength(int
the new property value
maxlength
)
Deprecated for removal since 4.0. This attribute is actually not specified in HTML. Do not use it on this component.

Set the value of the maxlength property.

public void
setMultiple(boolean
the new property value
multiple
)

Set the value of the multiple property.

public void
setOnblur(String
the new property value
onblur
)

Set the value of the onblur property.

public void
setOnchange(String
the new property value
onchange
)

Set the value of the onchange property.

public void
setOnclick(String
the new property value
onclick
)

Set the value of the onclick property.

public void
setOndblclick(String
the new property value
ondblclick
)

Set the value of the ondblclick property.

public void
setOnfocus(String
the new property value
onfocus
)

Set the value of the onfocus property.

public void
setOnkeydown(String
the new property value
onkeydown
)

Set the value of the onkeydown property.

public void
setOnkeypress(String
the new property value
onkeypress
)

Set the value of the onkeypress property.

public void
setOnkeyup(String
the new property value
onkeyup
)

Set the value of the onkeyup property.

public void
setOnmousedown(String
the new property value
onmousedown
)

Set the value of the onmousedown property.

public void
setOnmousemove(String
the new property value
onmousemove
)

Set the value of the onmousemove property.

public void
setOnmouseout(String
the new property value
onmouseout
)

Set the value of the onmouseout property.

public void
setOnmouseover(String
the new property value
onmouseover
)

Set the value of the onmouseover property.

public void
setOnmouseup(String
the new property value
onmouseup
)

Set the value of the onmouseup property.

public void
setOnselect(String
the new property value
onselect
)

Set the value of the onselect property.

public void
setReadonly(boolean
the new property value
readonly
)
Deprecated for removal since 4.0. This attribute is actually not specified in HTML. Do not use it on this component.

Set the value of the readonly property.

public void
setRole(String
the new property value
role
)

Set the value of the role property.

public void
setSize(int
the new property value
size
)
Deprecated for removal since 4.0. This attribute is actually not specified in HTML. Do not use it on this component.

Set the value of the size property.

public void
setStyle(String
the new property value
style
)

Set the value of the style property.

public void
setStyleClass(String
the new property value
styleClass
)

Set the value of the styleClass property.

public void
setTabindex(String
the new property value
tabindex
)

Set the value of the tabindex property.

public void
setTitle(String
the new property value
title
)

Set the value of the title property.

Inherited from jakarta.faces.component.UIInput:
addValidatoraddValueChangeListenerclearInitialStatecompareValuesdecodegetConvertedValuegetConverterMessagegetFamilygetRequiredMessagegetSubmittedValuegetValidatorMessagegetValidatorsgetValuegetValueChangeListenersisEmptyisImmediateisLocalValueSetisRequiredisValidmarkInitialStateprocessDecodesprocessUpdatesprocessValidatorsremoveValidatorremoveValueChangeListenerresetValuerestoreStatesaveStatesetConverterMessagesetImmediatesetLocalValueSetsetRequiredsetRequiredMessagesetSubmittedValuesetValidsetValidatorMessagesetValueupdateModelvalidatevalidateValue