-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple attribute on h:inputFile #1197
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
|
duplicate of #1555 closing |
HTML 5 has a new attribute on input file: multiple.
When present, the user agent must allow the file chooser to select multiple files.
While the pass through attributes feature allows this to render correctly:
The renderer for javax.faces.Input javax.faces.File doesn't handle this case correctly.
Instead, as it iterates through the parts, it just overwrites the preceding part with each file in the uploaded collection.
I think a better strategy is to always have the value of the component be a List instead of just Part.
Affected Versions
[2.2]
The text was updated successfully, but these errors were encountered: