@Name(value="ottcFileValidator") @Scope(value=SESSION) @Install(precedence=31) public class FileValidatorBean extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String[] |
MEDIA_PRIMARY_MIME_TYPES
Media primary mime-types.
|
| Constructor and Description |
|---|
FileValidatorBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
validateMimeType(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value)
Checks if File has no media type file content.
|
public static final String[] MEDIA_PRIMARY_MIME_TYPES
public void validateMimeType(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value)
throws javax.faces.validator.ValidatorException
context - component - value - javax.faces.validator.ValidatorExceptionCopyright © 2020. All rights reserved.