martin-g commented on PR #561:
URL: https://github.com/apache/wicket/pull/561#issuecomment-1479267796
In that case maybe it would be better to not do anything at line 225 but add
logic to `Form#onBeforeRender()` (?!) that does something like:
```
# pseudo code
if (maxFileCount == -1) {
AtomicLong accumulator = new AtomicLong(0);
visitAllMultipartFormComponents((mpfc) ->
{accumulator.add(mpfc.getMax())});
setMaxFileCount(accumulator.get());
}
```
--
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]