<af:inputFile /> component is useful to browse and select file to upload. Hence, whenever we want to accept files from users, we can display this component on the JSF page. But to get the selected values from this component the “usesUpload” attribute of the form should be set to “true”, otherwise it returns null always.
<af:form id="f1" usesUpload="true">
<af:inputFile label="Image File" id="if1" />
</af:form>
No comments:
Post a Comment