Review Board 1.5.4

Issue 265 - Providing more flexible behaviour for not-found

Updated 2 years ago

Marius Danciu Reviewers
265 dchenbecker, dpp, marius, charles, joni, atsuhiko, jorge, naftoli, kris, indrajit, alexb
None LiftWeb-archive
LiftRules.uriNotFound returns a NotFound object which can be:

case object DefaultNotFound extends NotFound

case class NotFoundAsResponse(response: LiftResponse) extends NotFound

// With this Lift will process the the not found template
// denominated by the path provided in the normal rendering pipeline as the designated template
case class NotFoundAsTemplate(path: ParsePath) extends NotFound

case class NotFoundAsNode(node: NodeSeq) extends NotFound



There is one "caveat" ... if I use NotFoundAsTemplate and I put some unknonw URI the not found page is rendered correctly
and the behavior is right except the Menu is not rendered because after all the URI I entered is unknown. So what do you think? ... should 
we do something about this?
Yes
Ship it!
Posted 2 years ago (January 9th, 2010, 11:34 a.m.)
Scary but good.  Please make it so.
  1. Done ... don't scare me :)