Maybe you're right Jesse, but I hope not... as I understood it all Tap4
Validators extends from BaseValidator which implements the message property
which is supplied between the brackets. When the docs states that Required
validator is not configurable I thought it meant that it had no other
properties to set with the = sign.

Also, in my own validators, if the input does not validate I do this:
throw new ValidatorException("No no no, not valid!!!");

but still I get the default ** ... so the invalidation works but the message
I give is ignored?
I have a feeling I have missed something simple, but I just can't see it :[

Malin


On 7/30/06, Jesse Kuhnert < [EMAIL PROTECTED]> wrote:

If you look at the "validators: binding prefix" section I see one
statement
that says the Required validator is not configurable. (I could be wrong
about my interpretation, but that's what the docs say)

http://tapestry.apache.org/tapestry4.1/UsersGuide/validation.html

On 7/30/06, Malin Ljungh <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I'm struggeling with validors. No matter what I do I just get the
default
> **
> as message.
> I try to write it like this:
> validators="validators:required[Please enter your name]"
>
> but I just get the default ** :(
> I have also writte my own validators and they work - but not the custom
> messages ...?
>
> What is it that I have missed?
>
> Malin
>
>


--
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.


Reply via email to