Discussion:
customize the validation message for Form setMaxSize()
extraquoo
2018-10-03 19:38:02 UTC
Permalink
Hi ,

i am using setMaxSize() to limit the file upload size.
Looks like the validation message is default to "Upload must be less than "
Is there any way to customize this validation message ?

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org
Martin Grigorov
2018-10-04 08:24:30 UTC
Permalink
Hi,

You need to provide your own value for resource key: uploadTooLarge
https://github.com/apache/wicket/blob/b21ec2d4b57a1533b92b6c433a728682c90bc9de/wicket-core/src/main/java/org/apache/wicket/Application.properties#L63
Post by extraquoo
Hi ,
i am using setMaxSize() to limit the file upload size.
Looks like the validation message is default to "Upload must be less than
"
Is there any way to customize this validation message ?
--
http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html
---------------------------------------------------------------------
extraquoo
2018-10-16 17:52:12 UTC
Permalink
yes ,i find the key. thanks

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@wicket.apache.org
For additional commands, e-mail: users-***@wicket.apache.org

Loading...