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

2009-10-04 Thread ishiijp
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 validation error. On Sun, Sep 6, 2009 at 3:02 PM, ishiijp yoshinori.is...@gmail.com

[Lift] Re: How to share request scope data among snippets in Lift

2009-10-04 Thread ishiijp
is a call-by-name parameter, so it will be invoked each time the RequestVar is uninitialized.  You can place lazy calculation logic in here. On Sat, Sep 26, 2009 at 12:14 AM, ishiijp yoshinori.is...@gmail.com wrote: Hi. If my lift application have some data that cost to create, and I want

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

2009-09-26 Thread ishiijp
such that the validator will stop processing a given field if a validator that has that trait mixed in returns a validation error. On Sun, Sep 6, 2009 at 3:02 PM, ishiijp yoshinori.is...@gmail.com wrote: I'm looking for a way to stop MappedField validations if prefvious validator returns error

[Lift] Re: dynamic search criteria

2009-09-10 Thread ishiijp
I think DB#runQuery method suits for your needs. It is handy method to execute prepare statement. example code: DB.runQuery(select * from person where name=? and age=? and state=?, List(smith, 50, FL)) But, You still have to make a where clause generator. DB#runQuery use

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

2009-09-06 Thread ishiijp
I'm looking for a way to stop MappedField validations if prefvious validator returns error. For example: object Alphabets extends MappedString(this, 20) { override def validations = valMinLen(1, Alphabets is required) _ :: valRegex(Pattern.compile(^[a-zA-Z]+$, It's not alphabets!) _

[Lift] Maven dependency problem with smack jar

2009-08-28 Thread ishiijp
Hi. I downloaded PocketChange Application referenced in the pdf file below. http://build.schuerrer.org/liftbook/master.pdf But maven say - Missing artifact org.igniterealtime.smack:smack:jar:3.1.0:compile - Missing artifact org.igniterealtime.smack:smackx:jar:3.1.0:compile Which repository has

[Lift] Maven dependency problem with smack jar

2009-08-28 Thread ishiijp
Sorry, It's just my environment problem... Please Ignore this and before post. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe