Very nice stuff Marius, kudos. Cheers, Tim
On Jan 9, 9:52 pm, Marius <[email protected]> wrote: > Hi all, > > This affects LiftRules.uriNotFound. It was changed from > > type URINotFoundPF = PartialFunction[(Req, Box[Failure]), > LiftResponse] > > to > > type URINotFoundPF = PartialFunction[(Req, Box[Failure]), NotFound] > > Where NotFound is a trait having 4 refinements: > > // Default behavior where Lift is returning some XhtmlResponse > case object DefaultNotFound extends NotFound > > // Use it to directly return a response to client (i.e. redirects etc) > case class NotFoundAsResponse(response: LiftResponse) extends NotFound > > // Specify a template that will be rendered if the page is not found. > This will be rendered > // though the normal rendering pipeline > case class NotFoundAsTemplate(path: ParsePath) extends NotFound > > // Use an arbitrary NodeSeq as a not found response. > case class NotFoundAsNode(node: NodeSeq) extends NotFound > > Br's, > Marius
-- You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
