Project Documentation
Foundation

Description

Renders a HTML input with type="file".

You must enable the MultiPart Filter to make this component work (see web.xml). Also, don't forget to set the form's attribute "enctype" to "multipart/form-data".

Screen Shot

Not available

API

since 0.3.2 (former <t:file_upload>)
author Manfred Geiler, Sylvain Vieujot
component-family javax.faces.Input
renderer-type org.apache.myfaces.FileUpload
component-class org.apache.myfaces.custom.fileupload.HtmlInputFileUpload
renderer-class org.apache.myfaces.custom.fileupload.HtmlFileUploadRenderer
tag-class org.apache.myfaces.custom.fileupload.HtmlInputFileUploadTag

Usage

<t:inputFileUpload [{all standard UIInput and HTML input attributes}]
                      [accept="mime-type"] />
            

Syntax

<t:inputFileUpload>

accept - a file filter String.
storage - a String defines the storage method.
value - the holder of the value.

Instructions

see "examples/fileupload.jsp" for an example!