You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Igor Drobiazko <ig...@gmail.com> on 2010/10/01 18:07:49 UTC

Re: Custom message catalogs for JSR303 BeanValidator?

This library uses the JSR 303 built-in message interpolation. Don't put
messages for constraints into a Tapestry message catalog.

Read here:
http://people.redhat.com/~ebernard/validation/#validationapi-message

On Thu, Sep 30, 2010 at 4:13 PM, Dmitry Grigoriev <ma...@dimgel.ru> wrote:

>  Hello all!
>
> Please help. I cannot find how to specify subj. Tried adding
> @NotNull(message = "{firstName.NotNull}") with and without curly braces
> to my entities.User class's firstName field and putting next property
> file into both src/main/resources/.../entities/User.properties and
> src/main/resources/.../pages/UserEdit.properties:
>
> firstName.NotNull=User name must not be empty
> {firstName.NotNull}=User name must not be empty
>
> No effect. Is some additional configuration required? And what must I do
> if I want "default" message catalogs bound to entities, but with
> opportunity to override some default messages for particular pages?
>
> Thanks in advance. :)
>
> --
> Cheers,
> dimgel
>
> http://dimgel.ru/lib.web
> Thin, stateless, strictly typed Scala web framework.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Best regards,

Igor Drobiazko
http://tapestry5.de