The prototypes here were used in getting the feedback during the first part of GSOC project. They are all obsolete now, and only kept for as a reference for future students .
<hx:inputFileUpload>
Name |
Required? |
Values |
Description |
---|---|---|---|
multiple |
optional |
true or false(default). |
File upload input type supports 'multiple' attribute. With HTML5, browsers can upload multiple files at once. Default to false. |
required |
optional |
true or false(default). |
Same with <t:inputFileUpload> 'required' except, 'required' attribute of HTML 'input' element is also used this time. |
styleClassOnDrag |
optional |
EL and literal |
This attribute will allow us to change the style of the component on a drag into the component. With no automatic mechanism, one can do this by listening dragenter events, and changing the style; and removing that style on dragleave respectively. Instead, we will this attribute, so the renderer can render Javascript and other stuff automatically for changing the style on drag. |
<hx:inputFileUpload value="#{someBean.uploadedFiles}" multiple="true" styleClassOnDrag="someClass" />
<input type="file" multiple="true" ondragenter="addClass(this,'someClass');" ondragleave="removeClass(this,'someClass')" />
<hx:inputFileUpload value="#{someBean.uploadedFile}" multiple="false"/>
<input type="file" multiple="false"/>