[Lift] Re: submit and redirect

2009-02-02 Thread Tim Perrett
Lift will still indeed notify you of an error invoking a snippet. On 02/02/2009 15:01, Derek Chen-Becker dchenbec...@gmail.com wrote: Also, if the class for the snippet couldn't be found, Lift should have output a message to that effect on the console. If it didn't, then that's a bug.

[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: submit and redirect

2009-02-02 Thread Derek Chen-Becker
Also, if the class for the snippet couldn't be found, Lift should have output a message to that effect on the console. If it didn't, then *that's*a bug. Derek On Mon, Feb 2, 2009 at 8:00 AM, Derek Chen-Becker dchenbec...@gmail.comwrote: I think the convention is to either properly capitalize

[Lift] Re: submit and redirect

2009-02-01 Thread Sergey Andreev
Derek, I was commenting out everything from my snippet and template but still the state was lossing between after redirect. And then i decided to change the name of the template from index.html to add.html (any other name) and it magically worked. Looks like a bug to me. Will investigate the

[Lift] Re: submit and redirect

2009-02-01 Thread Sergey Andreev
The problem has nothing to do with templates names. I was writting lift:showMarket.show.../lift:showMarket.show Capitalizing the first letter in the snippet's name (lift:ShowMarket.show) solved the problem. Anyway looks like a bug =) Regards, Sergey On Sun, Feb 1, 2009 at 7:09 PM, Sergey

[Lift] Re: submit and redirect

2009-01-30 Thread Sergey Andreev
Marius, thanks for the code sample. I read your mails about that usage of the redirectTo method on the list before but was confused how to use it. I wish there was a way to hide function's hash code from the URL without losing state. Cheers, Sergey On Fri, Jan 30, 2009 at 10:40 AM, Marius

[Lift] Re: submit and redirect

2009-01-30 Thread Marius
On Jan 30, 2:14 pm, Sergey Andreev andser...@gmail.com wrote: Marius, thanks for the code sample. I read your mails about that usage of the redirectTo method on the list before but was confused how to use it. I wish there was a way to hide function's hash code from the URL without losing

[Lift] Re: submit and redirect

2009-01-30 Thread Marius
Yeah it does... in essence not very different from initial proposal since internally redirectTo from stateful snippet does the same thing: binds a function to be executed upon redirect. On Jan 30, 5:47 pm, Derek Chen-Becker dchenbec...@gmail.com wrote: Unless I'm missing something the stateful

[Lift] Re: submit and redirect

2009-01-29 Thread Derek Chen-Becker
That looks like it should be working, but could you post the template(s) that go along with this? Derek On Thu, Jan 29, 2009 at 1: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

[Lift] Re: submit and redirect

2009-01-29 Thread Marius
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 submitting a form i would like to do a redirect and show the submitted values on the other template.