rich
Tag fileUpload


The <rich:fileUpload> component allows the user to upload files to a server. It features multiple uploads, progress bars, restrictions on file types, and restrictions on sizes of the files to be uploaded.

@author Konstantin Mishin


Tag Information
Component type org.richfaces.FileUpload
Tag Name rich:fileUpload
Renderer Type org.richfaces.FileUploadRenderer
Handler Class org.richfaces.view.facelets.FileUploadHandler

Attributes
Name Required Type Description
acceptedTypes false java.lang.String Defines comma separated list of file extensions accepted by component. The component does not provide any feedback when rejecting file. For introducing feedback for rejection, use ontyperejected parameter.
addLabel false java.lang.String The label for the Add button.
binding false javax.faces.component.UIComponent The value binding expression used to wire up this component to a component property of a JavaBean class
clearAllLabel false java.lang.String The label for the Clear button.
clearLabel false java.lang.String The label displayed for the Clear link
data false java.lang.Object Serialized (on default with JSON) data passed to the client by a developer on an AJAX request. It's accessible via "event.data" syntax. Both primitive types and complex types such as arrays and collections can be serialized and used with data
deleteLabel false java.lang.String The label displayed for the Delete link
dir false java.lang.String Direction indication for text that does not inherit directionality. Valid values are "LTR" (left-to-right) and "RTL" (right-to-left).
disabled false boolean If "true", this component is disabled
doneLabel false java.lang.String The label displayed when a file is successfully uploaded.
execute false java.lang.Object Ids of components that will participate in the "execute" portion of the Request Processing Lifecycle. Can be a single id, a space or comma separated list of Id's, or an EL Expression evaluating to an array or Collection. Any of the keywords "@this", "@form", "@all", "@none", "@region" may be specified in the identifier list. Some components make use of additional keywords
fileUploadListener false javax.el.MethodExpression A listener function on the server side after each file is uploaded. The listener should process files as required, such as storing them in the session/db/filesystem/ directory. The component itself does not store uploaded files, so if the listener is not implemented they are not stored anywhere
id false java.lang.String The component identifier for this component. This value must be unique within the closest parent component that is a naming container.
lang false java.lang.String Code describing the language used in the generated markup for this component.
limitRender false boolean If "true", render only those ids specified in the "render" attribute, forgoing the render of the auto-rendered panels
listHeight false java.lang.String

Defines height of file list.

Default value is "210px".

maxFilesQuantity false java.lang.String Defines maximum number of files allowed to be uploaded. After a number of files in the list equals to the value of this attribute, "Add" button disappears and nothing could be uploaded even if you clear the whole list. In order to upload files again you should rerender the component
noDuplicate false boolean

If "true" duplicate file uploads are prevented

Default is "false"

onbeforedomupdate false java.lang.String The client-side script method to be called after the ajax response comes back, but before the DOM is updated
onbegin false java.lang.String The client-side script method to be called before an ajax request.
onclear false java.lang.String Javascript code executed when a file is cleared
onclick false java.lang.String Javascript code executed when a pointer button is clicked over this element.
oncomplete false java.lang.String The client-side script method to be called after the DOM is updated
ondblclick false java.lang.String Javascript code executed when a pointer button is double clicked over this element.
onfilesubmit false java.lang.String Javascript code executed when a file is submitted
onkeydown false java.lang.String Javascript code executed when a key is pressed down over this element.
onkeypress false java.lang.String Javascript code executed when a key is pressed and released over this element.
onkeyup false java.lang.String Javascript code executed when a key is released over this element.
onmousedown false java.lang.String Javascript code executed when a pointer button is pressed down over this element.
onmousemove false java.lang.String Javascript code executed when a pointer button is moved within this element.
onmouseout false java.lang.String Javascript code executed when a pointer button is moved away from this element.
onmouseover false java.lang.String Javascript code executed when a pointer button is moved onto this element.
onmouseup false java.lang.String Javascript code executed when a pointer button is released over this element.
ontyperejected false java.lang.String Javascript code executed when a file does not meet the conditions stated by acceptedTypes parameter.
onuploadcomplete false java.lang.String Javascript code executed when a file upload is complete
render false java.lang.Object Ids of components that will participate in the "render" portion of the Request Processing Lifecycle. Can be a single id, a space or comma separated list of Id's, or an EL Expression evaluating to an array or Collection. Any of the keywords "@this", "@form", "@all", "@none", "@region" may be specified in the identifier list. Some components make use of additional keywords
rendered false boolean Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit. The default value for this property is true.
serverErrorLabel false java.lang.String The label displayed when a file upload fails due to a server error.
sizeExceededLabel false java.lang.String The label displayed when a file exceeds the size limit.
status false java.lang.String Name of the request status component that will indicate the status of the Ajax request
style false java.lang.String CSS style(s) to be applied when this component is rendered.
styleClass false java.lang.String Space-separated list of CSS style class(es) to be applied when this element is rendered. This value must be passed through as the "class" attribute on generated markup.
title false java.lang.String Advisory title information about markup elements generated for this component.
uploadLabel false java.lang.String The label for the Add button.


Output Generated by Tag Library Documentation Generator.