Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<html xmlns:javaee="http://java.sun.com/xml/ns/javaee">
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title>fileUpload
         (VDL Documentation)
         
      </title>
      <meta name="keywords" content="$tagname">
      <link rel="stylesheet" type="text/css" href="../css/stylesheet.css" title="Style">
   </head><script>
                function asd()
                {
                parent.document.title="fileUpload (VDL Documentation)";
                }
            </script><body bgcolor="white" onload="asd();"><a name="navbar_top"></a><table border="0" width="100%" cellpadding="1" cellspacing="0">
         <tr>
            <td COLSPAN="3" BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><a NAME="navbar_top_firstrow"></a><table BORDER="0" CELLPADDING="0" CELLSPACING="3">
                  <tr ALIGN="center" VALIGN="top">
                     <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    &nbsp;
                        <a href="../overview-summary.html"><font CLASS="NavBarFont1"><b>Overview</b></font></a>
                        &nbsp;
                        
                     </td>
                     <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    &nbsp;
                        <a href="tld-summary.html"><font CLASS="NavBarFont1"><b>Library</b></font></a>
                        &nbsp;
                        
                     </td>
                     <td BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<font CLASS="NavBarFont1Rev">&nbsp;Tag&nbsp;</font>&nbsp;
                        
                     </td>
                     <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    &nbsp;
                        <a HREF="../help-doc.html"><font CLASS="NavBarFont1"><b>Help</b></font></a>
                        &nbsp;
                        
                     </td>
                  </tr>
               </table>
            </td>
            <td ALIGN="right" VALIGN="top" ROWSPAN="3"><em></em></td>
         </tr>
         <tr>
            <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2"></font></td>
            <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
                  &nbsp;
                  <a HREF="../index.html" TARGET="_top"><b>FRAMES</b></a>
                  &nbsp;
                  &nbsp;
                  <a href="fileUpload.html" target="_top"><b>NO FRAMES</b></a>
                  &nbsp;
                  <script></script><noscript><a HREF="../alltags-noframe.html" TARGET=""><b>All Tags</b></a></noscript></font></td>
         </tr>
      </table>
      <hr>
      <h2><font size="-1">rich</font><br>
         Tag
         fileUpload
      </h2>
      <hr><p> The &lt;rich:fileUpload&gt; 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. </p> @author Konstantin Mishin<br><p></p>
      <hr>
      <table border="1" cellpadding="3" cellspacing="0" width="100%">
         <tr bgcolor="#CCCCFF" class="TableHeadingColor">
            <td colspan="2"><font size="+2"><b>Tag Information</b></font></td>
         </tr>
         <tr>
            <td>Component type</td>
            <td>org.richfaces.FileUpload</td>
         </tr>
         <tr>
            <td>Tag Name</td>
            <td>rich:fileUpload</td>
         </tr>
         <tr>
            <td>Renderer Type</td>
            <td>org.richfaces.FileUploadRenderer</td>
         </tr>
         <tr>
            <td>Handler Class</td>
            <td>org.richfaces.view.facelets.FileUploadHandler</td>
         </tr>
      </table><br><p></p>
      <table border="1" cellpadding="3" cellspacing="0" width="100%">
         <tr bgcolor="#CCCCFF" class="TableHeadingColor">
            <td colspan="5"><font size="+2"><b>Attributes</b></font></td>
         </tr>
         <tr>
            <td><b>Name</b></td>
            <td><b>Required</b></td>
            <td><b>Type</b></td>
            <td><b>Description</b></td>
         </tr>
         <tr valign="top">
            <td>acceptedTypes</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>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.
            </td>
         </tr>
         <tr valign="top">
            <td>addLabel</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>The label for the Add button.</td>
         </tr>
         <tr valign="top">
            <td>binding</td>
            <td>false</td>
            <td><code>javax.faces.component.UIComponent</code></td>
            <td>The value binding expression used to wire up this component to a component property of a JavaBean class</td>
         </tr>
         <tr valign="top">
            <td>clearAllLabel</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>The label for the Clear button.</td>
         </tr>
         <tr valign="top">
            <td>clearLabel</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>The label displayed for the Clear link</td>
         </tr>
         <tr valign="top">
            <td>data</td>
            <td>false</td>
            <td><code>java.lang.Object</code></td>
            <td>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
            </td>
         </tr>
         <tr valign="top">
            <td>deleteLabel</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>The label displayed for the Delete link</td>
         </tr>
         <tr valign="top">
            <td>dir</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>Direction indication for text that does not inherit directionality. Valid values are "LTR" (left-to-right) and "RTL" (right-to-left).</td>
         </tr>
         <tr valign="top">
            <td>disabled</td>
            <td>false</td>
            <td><code>boolean</code></td>
            <td>If "true", this component is disabled</td>
         </tr>
         <tr valign="top">
            <td>doneLabel</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>The label displayed when a file is successfully uploaded.</td>
         </tr>
         <tr valign="top">
            <td>execute</td>
            <td>false</td>
            <td><code>java.lang.Object</code></td>
            <td>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
            </td>
         </tr>
         <tr valign="top">
            <td>fileUploadListener</td>
            <td>false</td>
            <td><code>javax.el.MethodExpression</code></td>
            <td>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
            </td>
         </tr>
         <tr valign="top">
            <td>id</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>The component identifier for this component. This value must be unique within the closest parent component that is a naming
               container.
            </td>
         </tr>
         <tr valign="top">
            <td>immediateUpload</td>
            <td>false</td>
            <td><code>boolean</code></td>
            <td><p>If "true" upload stats immediately after file selection</p> <p>Default is "false"</p></td>
         </tr>
         <tr valign="top">
            <td>lang</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>Code describing the language used in the generated markup for this component.</td>
         </tr>
         <tr valign="top">
            <td>limitRender</td>
            <td>false</td>
            <td><code>boolean</code></td>
            <td>If "true", render only those ids specified in the "render" attribute, forgoing the render of the auto-rendered panels</td>
         </tr>
         <tr valign="top">
            <td>listHeight</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td><p>Defines height of file list.</p> <p>Default value is "210px".</p></td>
         </tr>
         <tr valign="top">
            <td>maxFilesQuantity</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>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
            </td>
         </tr>
         <tr valign="top">
            <td>noDuplicate</td>
            <td>false</td>
            <td><code>boolean</code></td>
            <td><p>If "true" duplicate file uploads are prevented</p> <p>Default is "false"</p></td>
         </tr>
         <tr valign="top">
            <td>onbeforedomupdate</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>The client-side script method to be called after the ajax response comes back, but before the DOM is updated</td>
         </tr>
         <tr valign="top">
            <td>onbegin</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>The client-side script method to be called before an ajax request.</td>
         </tr>
         <tr valign="top">
            <td>onclear</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>Javascript code executed when a file is cleared</td>
         </tr>
         <tr valign="top">
            <td>onclick</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>Javascript code executed when a pointer button is clicked over this element.</td>
         </tr>
         <tr valign="top">
            <td>oncomplete</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>The client-side script method to be called after the DOM is updated</td>
         </tr>
         <tr valign="top">
            <td>ondblclick</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>Javascript code executed when a pointer button is double clicked over this element.</td>
         </tr>
         <tr valign="top">
            <td>onfileselect</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>Javascript code executed when a file is selected</td>
         </tr>
         <tr valign="top">
            <td>onfilesubmit</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>Javascript code executed when a file is submitted</td>
         </tr>
         <tr valign="top">
            <td>onkeydown</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>Javascript code executed when a key is pressed down over this element.</td>
         </tr>
         <tr valign="top">
            <td>onkeypress</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>Javascript code executed when a key is pressed and released over this element.</td>
         </tr>
         <tr valign="top">
            <td>onkeyup</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>Javascript code executed when a key is released over this element.</td>
         </tr>
         <tr valign="top">
            <td>onmousedown</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>Javascript code executed when a pointer button is pressed down over this element.</td>
         </tr>
         <tr valign="top">
            <td>onmousemove</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>Javascript code executed when a pointer button is moved within this element.</td>
         </tr>
         <tr valign="top">
            <td>onmouseout</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>Javascript code executed when a pointer button is moved away from this element.</td>
         </tr>
         <tr valign="top">
            <td>onmouseover</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>Javascript code executed when a pointer button is moved onto this element.</td>
         </tr>
         <tr valign="top">
            <td>onmouseup</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>Javascript code executed when a pointer button is released over this element.</td>
         </tr>
         <tr valign="top">
            <td>ontyperejected</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>Javascript code executed when a file does not meet the conditions stated by acceptedTypes parameter.</td>
         </tr>
         <tr valign="top">
            <td>onuploadcomplete</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>Javascript code executed when a file upload is complete</td>
         </tr>
         <tr valign="top">
            <td>render</td>
            <td>false</td>
            <td><code>java.lang.Object</code></td>
            <td>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
            </td>
         </tr>
         <tr valign="top">
            <td>rendered</td>
            <td>false</td>
            <td><code>boolean</code></td>
            <td>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.
            </td>
         </tr>
         <tr valign="top">
            <td>serverErrorLabel</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>The label displayed when a file upload fails due to a server error.</td>
         </tr>
         <tr valign="top">
            <td>sizeExceededLabel</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>The label displayed when a file exceeds the size limit.</td>
         </tr>
         <tr valign="top">
            <td>status</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>Name of the request status component that will indicate the status of the Ajax request</td>
         </tr>
         <tr valign="top">
            <td>style</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>CSS style(s) to be applied when this component is rendered.</td>
         </tr>
         <tr valign="top">
            <td>styleClass</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>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.
            </td>
         </tr>
         <tr valign="top">
            <td>title</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>Advisory title information about markup elements generated for this component.</td>
         </tr>
         <tr valign="top">
            <td>uploadLabel</td>
            <td>false</td>
            <td><code>java.lang.String</code></td>
            <td>The label for the Add button.</td>
         </tr>
      </table><br><p></p><a name="navbar_bottom"></a><table border="0" width="100%" cellpadding="1" cellspacing="0">
         <tr>
            <td COLSPAN="3" BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><a NAME="navbar_bottom_firstrow"></a><table BORDER="0" CELLPADDING="0" CELLSPACING="3">
                  <tr ALIGN="center" VALIGN="top">
                     <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    &nbsp;
                        <a href="../overview-summary.html"><font CLASS="NavBarFont1"><b>Overview</b></font></a>
                        &nbsp;
                        
                     </td>
                     <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    &nbsp;
                        <a href="tld-summary.html"><font CLASS="NavBarFont1"><b>Library</b></font></a>
                        &nbsp;
                        
                     </td>
                     <td BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<font CLASS="NavBarFont1Rev">&nbsp;Tag&nbsp;</font>&nbsp;
                        
                     </td>
                     <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    &nbsp;
                        <a HREF="../help-doc.html"><font CLASS="NavBarFont1"><b>Help</b></font></a>
                        &nbsp;
                        
                     </td>
                  </tr>
               </table>
            </td>
            <td ALIGN="right" VALIGN="top" ROWSPAN="3"><em></em></td>
         </tr>
         <tr>
            <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2"></font></td>
            <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
                  &nbsp;
                  <a HREF="../index.html" TARGET="_top"><b>FRAMES</b></a>
                  &nbsp;
                  &nbsp;
                  <a href="fileUpload.html" target="_top"><b>NO FRAMES</b></a>
                  &nbsp;
                  <script></script><noscript><a HREF="../alltags-noframe.html" TARGET=""><b>All Tags</b></a></noscript></font></td>
         </tr>
      </table>
      <hr><small><i>
            Output Generated by
            <a href="http://taglibrarydoc.dev.java.net/" target="_blank">Tag Library Documentation
               Generator</a>.
            </i></small></body>
</html>
New to GrepCode? Check out our FAQ X