![]() The next listing shows the bean used in the view above. The following listing shows a form with a file upload component and a command button referencing an action method which processes the uploaded file. As a prerequisite, the form submit encoding must be set to multipart/form-data in the enctype attribute of the enclosing h:form. The upload is stored in a bean property of type referenced in the value attribute. h:inputFile is basically used like any other JSF input component. ![]() ![]() In this post of the series on JSF 2.2 I will show how to upload files with the brand new h:inputFile component.Īs JSF 2.2 requires Servlet 3.0 it is finally possible to have the file upload component h:inputFile in the standard. After so many years it finally happened! The JSF 2.2 specification features a file upload component.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |