You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by extraquoo <ex...@gmail.com> on 2018/10/03 19:38:02 UTC

customize the validation message for Form setMaxSize()

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


Re: customize the validation message for Form setMaxSize()

Posted by extraquoo <ex...@gmail.com>.
yes ,i find the key. thanks

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

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


Re: customize the validation message for Form setMaxSize()

Posted by Martin Grigorov <mg...@apache.org>.
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 <ex...@gmail.com> 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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>