Hi all,
this is my first post, but I read you always, so I apologize if it
appear so simple. I am tasting this sensational web framework.
I'll try to explain using a simple and basic example.
Consider a post mapper model with a mappedString object named
permalink
I'd like to set this db field
Ok, I am sorry for my previous rubbish
I solved the issue using vars in my Snippet and passing them to my
Post instance to validate and save.
regards,
wibble
On 22 Ott, 14:26, wibblecp wibbl...@gmail.com wrote:
Hi all,
this is my first post, but I read you always, so I apologize
hi guys,
I'm looking for a way to generate an rss feed with lift, I'm working
on something like this (from lift-book):
object OwnRssFeed extends XMLApiHelper {
def dispatch: LiftRules.DispatchPF = {
case Req(rss :: Nil, , GetRequest) = () = showArticles()
case Req(rss :: _ :: Nil, ,
Hi all,
I'm newbie with lifts and I am having a little problem. I am using
Lift2.0-M1.
I have a snippet that runs the rescue of a model. The method is called
when the submit the form
[code]
def validateAndSave (): Unit = currentEntry.validate match {
case Nil = currentEntry.save ;
/lift:snippet
[/code]
thanks,
w.
On Feb 6, 10:12 am, Marius marius.dan...@gmail.com wrote:
Are you using in your html page lift:msgs/ ?
Br's,
Marius
On Feb 6, 10:45 am, wibblecp wibbl...@gmail.com wrote:
Hi all,
I'm newbie with lifts and I am having a little problem. I am using
Using lift:msgs/ I receive the same result.
S.notice works fine in the browser but S.error with a list of errors
does not work.
any advice? thanks,
wibble.
On Feb 6, 10:16 am, wibblecp wibbl...@gmail.com wrote:
Hi Marius, thanks for your raply
I am using it in my html page as:
[code
it does not work even in the case of a single error on the form.
the result is always a List(Full(entries_code) : Description must not
be empty)
thanks,
wibble.
On Feb 6, 11:00 am, wibblecp wibbl...@gmail.com wrote:
Using lift:msgs/ I receive the same result.
S.notice works fine
:19 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
wibblecp wibbl...@gmail.com writes:
it does not work even in the case of a single error on the form.
the result is always a List(Full(entries_code) : Description must not
be empty)
Try adding showAll:
lift:Msgs showAll=true
But default
On Feb 6, 12:19 pm, Jeppe Nejsum Madsen je...@ingolfs.dk wrote:
wibblecp wibbl...@gmail.com writes:
it does not work even in the case of a single error on the form.
the result is always a List(Full(entries_code) : Description must not
be empty)
Try adding showAll:
lift:Msgs showAll
+ SAVED!)
case List(fielderror) = S.error(fielderror.msg)
case _ =
}
}
I havent tested it of course, but just wanna show you how you could tidy up
your code somewhat.
Cheers, Tim
On 6 Feb 2010, at 13:51, wibblecp wrote:
def validateAndSave (): Unit = currentEntry.validate
/
should be fine. But typically for field related message you could use
lift:msg id=field_id/ which would render only messages associated
with field_id id. As a side note lift:msgs/ only render messages
that are not associated with any ID.
Br's,
Marius
On Feb 6, 3:51 pm, wibblecp wibbl
11 matches
Mail list logo