[Lift] error page

2008-10-02 Thread Oliver
I don't want to display the default error page to the user. How do I replace it with my own? cheers Oliver --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to

[Lift] Re: error page

2008-10-02 Thread Marius
Hi, Please see LiftRules.browserResponseToException ... this is called when an exception is thrown from the application. Here you can intercept the Throwable and redirect to your own error page using RedirectResponse or RedirectWithState. Br's, Marius On Oct 2, 10:48 am, Oliver [EMAIL

[Lift] Re: error page

2008-10-02 Thread Marius
Or you can use LiftRules.logAndReturnExceptionToBrowser ...actually browserResponseToException is ultimately called by logAndReturnExceptionToBrowser On Oct 2, 10:59 am, Marius [EMAIL PROTECTED] wrote: Hi, Please see LiftRules.browserResponseToException ... this is called when an exception

[Lift] Re: error page

2008-10-02 Thread Oliver Lambert
I tried LiftRules.logAndReturnExceptionToBrowser = { case (request, e) = println(what is going on); RedirectResponse(/) case _ = println(whatis going on 2); RedirectResponse(/) } No change in behavior On 02/10/2008, at 6:03 PM, Marius wrote: Or you can use

[Lift] Re: error page

2008-10-02 Thread Tim Perrett
On this subject - I remember some time back we were discussing lift run levels and potentially different errors / levels of logging for different run levels. Did this ever come about? Cheers, Tim On Oct 2, 3:03 pm, TylerWeir [EMAIL PROTECTED] wrote: Hey Oliver, I dropped this in:      

[Lift] Todays questions

2008-10-02 Thread Oliver
I'm writing a wizard-like process, where when they have finished the set of forms and press submit I don't want the back button to take them back. Is there any way I can clear out the history? I guess a related question is, Lift is holding references to objects in its history that I would like to

[Lift] Please Welcome Al Thompson to the Lift committers

2008-10-02 Thread David Pollak
Folks, I've know Al Thompson for longer than any of the other Lift committers. Cast you mind back to '97... I was doing crazy things with browser-based, multi-user spreadsheets. Al was my technical liaison at Sun. Now I'm doing Lift. Al is joining the Scala and Lift communities. He's offered

[Lift] Re: Todays questions

2008-10-02 Thread David Pollak
On Thu, Oct 2, 2008 at 5:13 PM, Oliver [EMAIL PROTECTED] wrote: I'm writing a wizard-like process, where when they have finished the set of forms and press submit I don't want the back button to take them back. Is there any way I can clear out the history? This is JavaScript magic and I'm

[Lift] Re: Please Welcome Al Thompson to the Lift committers

2008-10-02 Thread Jorge Ortiz
Awesome! Welcome, Al. --j On Thu, Oct 2, 2008 at 5:14 PM, David Pollak [EMAIL PROTECTED]wrote: Folks, I've know Al Thompson for longer than any of the other Lift committers. Cast you mind back to '97... I was doing crazy things with browser-based, multi-user spreadsheets. Al was my

[Lift] Re: Todays questions

2008-10-02 Thread Oliver
Thanks for the answers Another related question - Is there any functionality in lift to prevent multiple submits (e.g. the browser is slow for whatever reason and the user presses the submit button multiple times)? cheers Oliver On Fri, Oct 3, 2008 at 10:15 AM, David Pollak [EMAIL PROTECTED]

[Lift] Re: JPA and enumerations

2008-10-02 Thread Oliver
On Thu, Oct 2, 2008 at 11:07 PM, Derek Chen-Becker [EMAIL PROTECTED]wrote: OK, I've run into problems again now that I'm trying to actually use the enumerations. In my book class I have the variable defined as: @Type{val `type` = com.foo.jpaweb.model.GenreType} var genre = Genre.unknown

[Lift] Re: JPA and enumerations

2008-10-02 Thread Derek Chen-Becker
I tried that before and I got compilation errors, but this time I did a maven clean test and it all compiled and tested fine. I must have had some artifact in my targets dir :( Thanks again for the help! Derek On Thu, Oct 2, 2008 at 9:28 PM, Oliver [EMAIL PROTECTED] wrote: On Thu, Oct 2,