solomax commented on PR #561:
URL: https://github.com/apache/wicket/pull/561#issuecomment-1479201460

   > You mean to call form.setFileCountMax(this.max) ?
   
   yes
   
   > Why ? I think this is responsibility of the developer to set the max per 
Form. Wicket should not try to calculate it. Or should it ?!
   
   in this particular case `max` is set for `MultiFileUploadField` but *not* 
for the form
   so now developer should pass max for both form and field, which is Ok in 
case there are multiple file inputs, but seems to be sort-of-code-duplication 
in case there is only one `MultiFileUploadField` for the form


-- 
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]

Reply via email to