Re: customize the validation message for Form setMaxSize()

2018-10-16 Thread extraquoo
yes ,i find the key. thanks

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

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



Re: customize the validation message for Form setMaxSize()

2018-10-04 Thread Martin Grigorov
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

On Thu, Oct 4, 2018 at 6:46 AM extraquoo  wrote:

> 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-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>