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 ; S.notice
rius
>
> On Feb 6, 10:45 am, wibblecp wrote:
>
>
>
> > 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
> >
Using 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 wrote:
> Hi Marius, thanks for your raply
>
> I am using it in my html page as:
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 wrote:
> Using I receive the same result.
>
> S.notice works fine in the browser but S.err
ble
On Feb 6, 12:19 pm, Jeppe Nejsum Madsen wrote:
> wibblecp 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:
>
>
>
&g
yName = "Description"
> > override def validations = valMinLen(1, S.??("description must
> > not be empty")) _ :: super.validations
> > }
>
> > [/code]
>
> > thanks,
> > wibble
>
> > On Feb 6, 12:19 pm, Jeppe Nejsum Ma
rentEntry.title + "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
typically for field related message you could use
> which would render only messages associated
> with "field_id" id. As a side note only render messages
> that are not associated with any ID.
>
> Br's,
> Marius
>
> On Feb 6, 3:51 pm, wibblecp wrote:
>
>
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 fi
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 wrote:
> Hi all,
> this is my first post, but I read you always, so I apologize if it
> appear so
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" :: _ ::
Hi Glenn
thanks for your reply. It seems to work for me :-) I was confused
between AtomResponse, Box[NodeSeq] and LiftResponse. I am at beginning
of this journey.
regards,
wibblecp.
On 23 Ott, 18:49, glenn wrote:
> I don't know if this will help, but I use a simple createTag to just
&
12 matches
Mail list logo