Interface ValidateFileItemTagDeclaration
public interface ValidateFileItemTagDeclaration
Register an
FileItemValidator
instance on the UIComponent
associated with the closest parent UIComponent custom action.-
Method Summary
Modifier and TypeMethodDescriptionvoid
setContentType
(jakarta.el.ValueExpression contentType) A list of allowed content types or extensions of the file.void
setMaxSize
(jakarta.el.ValueExpression maxSize) The maximum size of the file in bytes.
-
Method Details
-
setMaxSize
void setMaxSize(jakarta.el.ValueExpression maxSize) The maximum size of the file in bytes. -
setContentType
void setContentType(jakarta.el.ValueExpression contentType) A list of allowed content types or extensions of the file. Examples: "image/png,application/pdf,.xml,.doc".- See Also:
-