[Lift] submit and redirect

2009-01-29 Thread Sergey Andreev
Hi Liftlers, I am migrating one of my application to the lift as a way to learn it and i would like to ask a question. After submitting a form i would like to do a redirect and show the submitted values on the other template. I have 2 templates and i use the same snippet in both of them to render

[Lift] bug in mixinAttributes

2009-01-30 Thread Sergey Andreev
Hi, I have encountered a bug in the mixinAttributes method If you put the following xml in the template: data:textBoxes input type=text style=.../ /data:textBoxes and bind it like that: bind(data, xhtml, textBoxes - mixinAttributes(text(,)) _) then the attributes won't be merged.

[Lift] Re: submit and redirect

2009-01-30 Thread Sergey Andreev
marius.dan...@gmail.com wrote: On Jan 30, 9:36 am, Marius marius.dan...@gmail.com wrote: On Jan 29, 10:54 pm, Sergey Andreev andser...@gmail.com wrote: Hi Liftlers, I am migrating one of my application to the lift as a way to learn it and i would like to ask a question. After

[Lift] Re: submit and redirect

2009-02-01 Thread Sergey Andreev
) and it works fine using very similar code. On Fri, Jan 30, 2009 at 12:36 AM, Marius marius.dan...@gmail.com wrote: On Jan 29, 10:54 pm, Sergey Andreev andser...@gmail.com wrote: Hi Liftlers, I am migrating one of my application to the lift as a way to learn it and i would

[Lift] Re: submit and redirect

2009-02-01 Thread Sergey Andreev
. I just coded up a test app (attached) and it works fine using very similar code. On Fri, Jan 30, 2009 at 12:36 AM, Marius marius.dan...@gmail.com wrote: On Jan 29, 10:54 pm, Sergey Andreev andser...@gmail.com wrote: Hi Liftlers, I am migrating one of my application to the lift

[Lift] Re: submit and redirect

2009-02-02 Thread Sergey Andreev
There were no errors on the console. And the state was persisted when i was using Marius's example. So it looks like a bug to me. Thanks, Sergey On Mon, Feb 2, 2009 at 6:09 PM, Tim Perrett he...@timperrett.com wrote: Lift will still indeed notify you of an error invoking a snippet. On

[Lift] Re: Custom Boot Class

2009-03-16 Thread Sergey Andreev
Jorge, I am using a custom Boot class and it works just fine. I believe that if you create a Brat.scala and put your class there, it will solve the problem Regards, Sergey On Mon, Mar 16, 2009 at 1:31 PM, Jorge Ortiz jorge.or...@gmail.com wrote: Folks, I'm trying to specify a custom Boot

[Lift] Re: StatefulSnippet Beginner

2009-04-18 Thread Sergey Andreev
Could you attach a sample code which doesn't work? On Sat, Apr 18, 2009 at 8:41 PM, bradford fingerm...@gmail.com wrote: I have changed class Products { to read class Products extends StatefulSnippet { Instead of S.redirectTo, I now have this.redirectTo and it still doesn't seem to be

[Lift] Re: Object typecast to Mapper

2009-04-20 Thread Sergey Andreev
Hi Amit, Try that one def bindObject[T : AnyRef](className: Class[T]): Option[Object] = { val sClassName = className.getPackage.getName.concat(.Wrap.concat(className.getSimpleName)) try { Some(Class.forName(sClassName.replaceFirst(com.vtech,

[Lift] Re: How do I properly read a value from a cookie?

2009-11-16 Thread Sergey Andreev
Hi, For-comprehensions could help you out: for{ cookie - S.findCookie(cookieName) value - cookie} doSomethingWithValue Regards On Mon, Nov 16, 2009 at 12:07 PM, DMB combust...@gmail.com wrote: When I call findCookie it returns a Box. Then, the value on the cookie itself is also a box.