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
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
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
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
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!)
_
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
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