For reasons of requirement, I have to combine components of primefaces and an input file in pure html. Now my question is, can I have the html input inside a JSF form? And that practically the whole view is with PrimeFaces and from a bean to process the file to be loaded with the input file component. Example of what I intend:
<p:panel header="Subir TXT" id="panelDwn" style="border: none;" >
<h:panelGrid columns="1" cellpadding="5" style="border: none;">
<h:outputLabel style="color: #545454; font-size: 16px;" value="Seleccione el archivo a validar TXT:" />
</h:panelGrid>
<h:panelGrid id="panelDes" columns="2" cellpadding="5" style="border: none;">
<!-- INPUT FILE HTML -->
<input type="file" name="archivoupload"/>
<h:outputLabel id="lblStatus" style="color: #545454; font-size: 16px;" value="#{uploadFileBean.status}" />
<!--h:outputLabel style="color: #545454; font-size: 16px;" value="#{uploadFileBean.statusDownload}" /-->
</h:panelGrid>
<br />
<h:panelGrid columns="2" cellpadding="5" style="border: none;">
<p:commandButton styleClass="basicbtngobmx" value="Regresar" actionListener="#{captchaComponent.reset}" ajax="false" />
<p:commandButton id="comdDwn" value="Descargar archivo" actionListener="#{uploadFileBean.resetValida}" ajax="false" disabled="#{uploadFileBean.status ==null or captchaComponent.statusBtnDescargarArchivo ==null}" update="fileUp">
<p:fileDownload value="#{uploadFileBean.file}" ajax="false" />
</p:commandButton>
</h:panelGrid>
</p:panel>
Behind from a bean invoke a servlet to upload and process the file and output a processed txt. I only have my question for this functionality.
In the code, I try to exemplify that the inputFile will be html and the rest of the components of primefaces.