Martin Grigorov created WICKET-6181:
---------------------------------------

             Summary: Revert the removal of the default error message when 
uploading too big files
                 Key: WICKET-6181
                 URL: https://issues.apache.org/jira/browse/WICKET-6181
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 6.23.0, 7.3.0
            Reporter: Martin Grigorov
            Assignee: Martin Grigorov
            Priority: Minor


With WICKET-5735 the default error message for "form upload too big" has been 
removed unintentionally:

In 6.17.0:
final String defaultValue = "Upload must be less than " + getMaxSize();
String msg = getString(getId() + '.' + UPLOAD_TOO_LARGE_RESOURCE_KEY,
Model.ofMap(model), defaultValue)

While in 6.23.0:
String msg = getString(getId() + '.' + UPLOAD_TOO_LARGE_RESOURCE_KEY,
Model.ofMap(model));

This makes it hard to specify an error message when using nested forms and the 
inner form has FileUploadField.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to