You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Dmitry Grigoriev <ma...@dimgel.ru> on 2010/10/11 11:45:06 UTC

JSR303: Tapestry prepends error messages with "Textfield".

 Hello all,

My ValidationMessages.properties looks like this:

    missing=Missing required parameter:
    firstName=first name
    lastName=last name

Entity fields are annotated like this:

    @NotNull(message = "{missing} {firstName}") private String firstName;
    @NotNull(message = "{missing} {lastName}") private String lastName;

The error messages I get (client-side validation):

    Textfield Missing required parameter: first name
    Textfield 0 Missing required parameter: last name

How can I get rid of those "Textfield" and "Textfield 0" prefixes?

-- 
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


Re: JSR303: Tapestry prepends error messages with "Textfield".

Posted by Dmitry Grigoriev <ma...@dimgel.ru>.
 Thank you. :) <textfield ... label="literal:"/> solved the problem.

On 10/11/2010 10:36 PM, Igor Drobiazko wrote:
> Yous should provide labels for your input fields.
>
>

-- 
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


Re: JSR303: Tapestry prepends error messages with "Textfield".

Posted by Igor Drobiazko <ig...@gmail.com>.
Yous should provide labels for your input fields.

On Mon, Oct 11, 2010 at 11:45 AM, Dmitry Grigoriev <ma...@dimgel.ru> wrote:

>  Hello all,
>
> My ValidationMessages.properties looks like this:
>
>    missing=Missing required parameter:
>    firstName=first name
>    lastName=last name
>
> Entity fields are annotated like this:
>
>    @NotNull(message = "{missing} {firstName}") private String firstName;
>    @NotNull(message = "{missing} {lastName}") private String lastName;
>
> The error messages I get (client-side validation):
>
>    Textfield Missing required parameter: first name
>    Textfield 0 Missing required parameter: last name
>
> How can I get rid of those "Textfield" and "Textfield 0" prefixes?
>
> --
> 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