0

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?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Guerino Rodella
  • 321
  • 4
  • 16

1 Answers1

2

From the jsf tutorial

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

Is the adviced way

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Kukeltje
  • 12,223
  • 4
  • 24
  • 47
  • Hmmm thought that was the link I posted to… now I see it was the wrong one. Mea culpa – Kukeltje Jan 29 '15 at 12:51
  • Just simple as that. Get it, thanks! But what about the backend? What do I store, the file path or there is a type for it? – Guerino Rodella Jan 29 '15 at 19:06
  • please do a little searching in google or even in the 'related' column to the right here... And please accept the answer – Kukeltje Jan 29 '15 at 20:13