Declaring <h:inputFile> as passthrough element

176 Views Asked by At

I'm developing in JSF 2.2 using passthrough elements and I would like to translate <h:inputFile> into a passthrough element. I searched in the internet but didn't found any solution using passthrough elements.

Which HTML5 should I passthrough to render it?

1

There are 1 best solutions below

3
On BEST ANSWER

From the jsf tutorial

<input type="file" jsf:id="myFile" jsf:value="#{bean.file}"/>

Is the adviced way