I am using Tomahawk's fileupload component <t:inputfileupload>
for uploading files. I've set enctype of form as
enctype="multipart/form-data"
and I used <h:commandButton>
to submit the form.
But the UploadedFile
property in the bean is null
. What am I doing wrong and how can I fix it?
Ensure that you've configured the ExtensionsFilter
as per their documentation. It's the one responsible for processing multipart/form-data
requests and setting the appropriate parts as bean properties.