[Lift] Re: How to stop validations if previous validator returns error.

2009-10-05 Thread David Pollak
On Sun, Oct 4, 2009 at 2:12 AM, ishiijp yoshinori.is...@gmail.com wrote: Hi. I have found StopValidationOnError trait in Mapper.scala, But I couldn't understand how to use it. Please show me a example. def stopableValMaxLen: (String = List[FieldError]) with StopValidationOnError[String] =

[Lift] Re: How to stop validations if previous validator returns error.

2009-10-04 Thread ishiijp
Hi. I have found StopValidationOnError trait in Mapper.scala, But I couldn't understand how to use it. Please show me a example. thanks. On 9月15日, 午前4:08, David Pollak feeder.of.the.be...@gmail.com wrote: I'll check code in after it passes the reviewboard process that let's you mix in:  

[Lift] Re: How to stop validations if previous validator returns error.

2009-09-26 Thread ishiijp
Very nice! thanks a lot!! On 9月15日, 午前4:08, David Pollak feeder.of.the.be...@gmail.com wrote: I'll check code in after it passes the reviewboard process that let's you mix in:  trait StopValidationOnError[T] extends Function1[T, List[FieldError]] to a validation function such that the

[Lift] Re: How to stop validations if previous validator returns error.

2009-09-14 Thread David Pollak
I'll check code in after it passes the reviewboard process that let's you mix in: trait StopValidationOnError[T] extends Function1[T, List[FieldError]] to a validation function such that the validator will stop processing a given field if a validator that has that trait mixed in returns a