Class MultiFileUploadControl

  • All Implemented Interfaces:
    java.util.Observer, javax.servlet.jsp.el.VariableResolver, IControl, IDataBoundControl, IDataControl, IRenderer

    @StableMinor(version="17.0",
                 sinceVersion="6.1")
    public class MultiFileUploadControl
    extends DataBoundControl<TabularSource<ITabularSourceField>>
    Control used to upload multiples files at same time.

    This control must have as dataId the value of source file field.

    This control generates sub-controls needed to control all information added by users. This informations can not be changed by users. In addition it generate a validator subcontrol that checks if exists some upload in progress when the user perform a ProcessAction.

    
     <control className="MultiFileUploadRequiredValueValidatorControl" type="lum_requiredValueValidator">
     	<script> script value </script>
     </control>
     <control id="imageFile_supportedType" trim="true" type="lum_inputHidden" value=""/>
     <control id="imageFile_addedGUIDs" trim="true" type="lum_inputHidden" value="" />
     <control id="imageFile_folderId" trim="true" type="lum_inputHidden" value="8A488A28315CB65C01315DD0977B37F5" />
     <control id="imageFile_multiFileUploadListOfFilesAdded" trim="true" type="lum_inputHidden" value="" />
     <control id="imageFile_numberOfAddedFiles" trim="true" type="lum_inputHidden" value="0"/>
     <control id="imageFile_renderAction" trim="true" type="lum_inputHidden" value="true" />
     
    Example use:
    
     <control:lum_multiFileUpload id="imageFile" sourceId="sourceName" allowedFileExtensions="*.jpg;*.png;*.gif" dataId="dataId">
       <buttons>
           <clearButton>
             <label>STR_LABEL</label>
             <image>imagePath</image>
           </clearButton>
           <deleteButton>
             <label>STR_LABEL</label>
             <image>imagePath</image>
           </deleteButton>
           <addButton>
             <label>STR_LABEL</label>
             <image>imagePath</image>
           </addButton>
       </buttons>
       <messages>
         <error>STR_MESSAGE</error>
         <success>STR_MESSAGE</success>
       </messages>
       <controls>
         <control:lum_inputText id="name" dataId="name" sourceId="none"/>
       </controls>
     </control:lum_multiFileUpload>
     
    xml data available for xsl rendering:
    
     <control id="imageFile" type="lum_multiFileUpload" allowedFileExtensions="*.jpg;*.png;*.gif">
     	<!-- sub control -->
      	<def>
      		<clearButton>
      			<label>Clear</label> 
      			<image>lumis/portal/client/images/Clear.gif</image> 
      		</clearButton>
      		<deleteButton>
      			<label>Delete</label> 
      			<image>lumis/portal/client/images/Delete.gif</image> 
      		</deleteButton>
      		<addButton>
      			<label>Add</label> 
      			<image>lumis/portal/client/images/Add.gif</image> 
      		</addButton>
              <messages>
                <error>STR_MESSAGE</error>
                <success>STR_MESSAGE</success>
              </messages>
      		<sii>8A488A1B2C6595B5012C6596FC8A01B6</sii> 
      		<lumUserSessionId>8A488AF92CBBAF59012CBBD698420390</lumUserSessionId> 
      		<folder>8A488AF92CBBAF59012CBBE219450556</folder> 
      		<allowedFileExtensions /> 
      		<fileDescription /> 
      	</def>
      </control>
     
    Since:
    6.1.0
    Version:
    $Revision$ $Date$