On Fri, May 8, 2009 at 6:51 AM, marius d. marius.dan...@gmail.com wrote:
Personally I'd be very reluctant exposing that to applications as this
is Lift implementation specific and exposing an API tight to that
leads to unnecessary coupling.
While I don't like unnecessary coupling, either, I
Interesting view point... Lift has very good support for managing HTTP
requests, so, by default - REST. Im currently writing a series of
posts about various components in Lift and dispatching / rest was the
next one on my list. Probably get around to writing it next week.
Cheers, Tim
On May 7,
Can't you use a regular Java profiler to determine this?
Perhaps would be beneficial to start thinking of a generic enough
stats module that would reveal information like that to the lift
applications. I guess we need to see what the general consensus is and
take it from there.
Br's,
Marius
On
Thanks, but I cannot find the type of ExceptionHandlerPF in the Lift
doc.
Something like this?
LiftRules.exceptionHandler.prepend((x: NodeSeq) = Log.error(x)).
On 5月8日, 上午12時08分, David Pollak feeder.of.the.be...@gmail.com wrote:
Exceptions are handled in LiftRules.exceptionHandler
You can
Thanks...
Another question is, when I want to set the foreign key to null
I use talk.actioner_id(null.asInstanceof[UserEntry])
which results an exception, how to set a foreign key to null?
Thanks
On 5月7日, 上午1時18分, David Pollak feeder.of.the.be...@gmail.com wrote:
On Tue, May 5, 2009 at 6:03
2009/5/8 sailormoo...@gmail.com sailormoo...@gmail.com
Thanks. Any idea to remove the redundant logs?
They are not redundant. They each represent a JDBC operation.
On 5月7日, 上午1時26分, David Pollak feeder.of.the.be...@gmail.com wrote:
That's because there are two round-trips to the
On Fri, May 8, 2009 at 12:33 AM, wapgui torsten.schm...@wapgui.com wrote:
With your hint I made it, except fileUpload fields. You can't set
default values there, or am I wrong?
No... file uploads take no default values in HTML... if I'm wrong about
that, we can update Lift... just point me
It would be something more like this:
LiftRules.exceptionHandler.prepend {
case (production, Req(path, , GetRequest), SomeException) = {
Log.error(MELT DOWN!!)
RedirectResponse(/)
}
}
The signature of the exception handler type is:
type ExceptionHandlerPF =
Sorry, scratch that - made a slight error writing that code from
memory! It should read:
LiftRules.exceptionHandler.prepend {
case (Props.RunModes.Production, Req(path, , GetRequest),
exception) = {
Log.error(MELT DOWN!!)
RedirectResponse(/)
}
}
Cheers, Tim
On Fri, May 8, 2009 at 12:49 AM, Oliver Lambert olambo...@gmail.com wrote:
On Fri, May 8, 2009 at 6:51 AM, marius d. marius.dan...@gmail.com wrote:
Personally I'd be very reluctant exposing that to applications as this
is Lift implementation specific and exposing an API tight to that
It's becoming an established best practice that scripts should be put
at the END of a page, where possible, in order to speed up download
times
Good article here: http://developer.yahoo.com/performance/rules.html
It would be nice if Lift could help encourage and support this by
allowing a tail
A lift:tail built in snippet might me a good addition. I could
probably allocate some time to noodle on it.
Br's,
Marius
On May 8, 5:05 pm, KWright kev.lee.wri...@googlemail.com wrote:
It's becoming an established best practice that scripts should be put
at the END of a page, where possible,
I like it.
Chas.
marius d. wrote:
A lift:tail built in snippet might me a good addition. I could
probably allocate some time to noodle on it.
Br's,
Marius
On May 8, 5:05 pm, KWright kev.lee.wri...@googlemail.com wrote:
It's becoming an established best practice that scripts should be
Sounds like this could be a neat addition. Looking forward to see what you
come up with :-)
Cheers, Tim
On 08/05/2009 20:19, marius d. marius.dan...@gmail.com wrote:
A lift:tail built in snippet might me a good addition. I could
probably allocate some time to noodle on it.
Br's,
Thanks for the help.
What I need might like this
LiftRules.exceptionHandler.prepend {
case (_, _, exception) = {
Log.error(exception.getStackTrace.toString)
RedirectResponse(/)
}
}
--~--~-~--~~~---~--~~
You received this message
Thanks for the help.
Your most welcome.
What I need might like this
LiftRules.exceptionHandler.prepend {
case (_, _, exception) = {
Log.error(exception.getStackTrace.toString)
RedirectResponse(/)
}
}
If that works for your needs, go for it. The only
Heyho,
anyone has an idea how one might accomplish having the locale/language
of the content in the url? since most search engines can't work with
cookies and therefore change the language correctly, i wanted to go
for URLs like /de/mystuff or /en/mystuff. I guess everyone gets the
point.
Any
Lifted,
Since there's another SOS conference coming
up%20http://homepages.inf.ed.ac.uk/bklin/SOS2009/,
i've decided to formally write up this really neat idea for reduction
http://biosimilarity.blogspot.com/2009/04/law-of-attraction.htmlthat i
discovered. To support the paper (i.e. provide an
18 matches
Mail list logo