Re: Messages on Validator
Thank you Checko! Elegant or not - it works! And this solution OK for me. Maybe I have misunderstood - I thought the error message would come up automatically next to the input field (instead of the **). Thanks again, Malin On 7/31/06, Checko <[EMAIL PROTECTED]> wrote: My pages with forms and validation always contain something like this (once for the whole form): Error message It might not be the most elegant solution, but it displays the validation messages (plus ** for the problematic fields). Malin Ljungh 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 > > -- View this message in context: http://www.nabble.com/Messages-on-Validator-tf2024309.html#a5581713 Sent from the Tapestry - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Messages on Validator
My pages with forms and validation always contain something like this (once for the whole form): Error message It might not be the most elegant solution, but it displays the validation messages (plus ** for the problematic fields). Malin Ljungh 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 > > -- View this message in context: http://www.nabble.com/Messages-on-Validator-tf2024309.html#a5581713 Sent from the Tapestry - User forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Messages on Validator
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.
Re: Messages on Validator
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.
Messages on Validator
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