I have created a simple jsf
apllication for file upload but instead of creating a jsf
input file like this
<h:form id="fileToUploadForm" enctype="multipart/form-data">
<h:inputFile id="fileToUpload" required="true" f5:multiple="multiple"
requiredMessage="No file selected ..." onchange="fileSelected();"
render="FilesTable"/>
<h:commandButton type="button" onclick="uploadFile()" value="Upload" />
</h:form>
I want to create it programmatically and add it to the form.
For ex : htmlform.getChildren().add(<File Component>)