Google News
logo
JSF - Interview Questions
What is h:inputFile tag in JSF (JavaServer Faces)?
JSF renders it as an HTML element of type file. It is used to get the file as input. In HTML form, it allows a user to upload a file.

<h:inputFile  id="file-id"  value="#{user.fileName}" required="true"   
requiredMessage="Please upload a file" alt="upload file"></h:inputFile>

 

Advertisement