Try:

  case "badger" :: Nil => Left(() => demo)

An Either[A, B] means it can be either a Left[A] or a Right[B].

--j

On Sat, Dec 6, 2008 at 12:35 PM, Tim Perrett <[EMAIL PROTECTED]> wrote:

>
> Sorry, the code should have been:
>
> object ExampleLoader {
>  def template: LiftRules.ViewDispatchPF = {
>     case "badger" :: Nil => () => demo
>  }
>
>  def demo: Can[NodeSeq] = Full(<html></html>)
>
> }
>
>
> [INFO]  found   : () => net.liftweb.util.Can[scala.xml.NodeSeq]
> [INFO]  required: Either[() => net.liftweb.util.Can
> [scala.xml.NodeSeq],net.liftweb.http.LiftView]
> [INFO]     case "badger" :: Nil => () => demo
> [INFO]                                ^
>
>
>
> Cheers, Tim
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to