Tag validateFileMimetype

Register an InputFileMimetypeValidator instance on the UIComponent associated with the closest parent UIComponent custom action.

<nxu:inputFile value="#{document.file.content" filename="#{document.file.filename}" editFilename="true"> <nxu:validateFileMimetype extensions=".jpg, .png" /> </nxu:inputFile>

Tag Information
Tag ClassNull
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

extensionsfalsefalsejava.lang.StringString representing the list of extensions to check for a file, separated by commas.
authorizedfalsefalsejava.lang.StringBoolean indicating if the list of extensions represents authorized extensions or unauthorized ones. Defaults to true.
bindingfalsefalsejava.lang.StringA ValueExpression that evaluates to an instance of the validator.
hiddenfalsefalsejava.lang.StringBoolean indicating if the list of extensions is displayed. Defaults to false.

No Variables Defined.

Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.