dashorst opened a new issue, #1954:
URL: https://github.com/apache/wicket/issues/1954
`MultiFileUploadField` shows its caption ("Files:" or "Files (maximum N):")
also when no file has been selected yet, so an empty list has a heading.
## Where
`wicket-core/src/main/java/org/apache/wicket/markup/html/form/upload/MultiFileUploadField.java`,
where the `caption` label is added (`container.add(new Label("caption", new
CaptionModel()))`), and the markup in `MultiFileUploadField.html` next to it.
Files are added and removed in the browser by the field's JavaScript, so check
whether the server-side model knows about the selection at render time, or
whether the caption has to be shown and hidden on the client.
## Done when
- The caption is hidden while the list is empty and shown when a file is
added, also after a file is removed again.
- A test in
`wicket-core-tests/src/test/java/org/apache/wicket/markup/html/form/upload/MultiFileUploadFieldTest.java`
where the behaviour is server-side, and a check in the upload example
(`wicket-examples`, `org.apache.wicket.examples.upload.MultiUploadPage`,
started from `StartExamples` in `wicket-examples/src/test/java`).
## Background
Originally reported as
[WICKET-6468](https://issues.apache.org/jira/browse/WICKET-6468).
---
Part of #1945. This issue is meant for a first contribution to Wicket. To
work on it, leave a comment so others know; a claim without a pull request
lapses after two weeks. Questions are welcome, here on the issue or on
[email protected]. Start your branch from `master`, and see [Send a pull
request to
Wicket](https://wicket.apache.org/contribute/wicket-pull-request.html) for
building and testing.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]