Ah, thanx!I forgot about Extractors ;-) 2009/4/15 Derek Chen-Becker <dchenbec...@gmail.com>
> This is actually handled by the unapply method on the Req object (not the > Req class). If you look at the type signature, the unapply method returns > > Option > <http://www.scala-lang.org/docu/files/api/scala/Option.html>[(List<http://www.scala-lang.org/docu/files/api/scala/List.html> > [String <http://java.sun.com/javase/6/docs/api/java/lang/String.html>], > String <http://java.sun.com/javase/6/docs/api/java/lang/String.html>, > RequestType<http://scala-tools.org/scaladocs/liftweb/1.0/net/liftweb/http/RequestType.html> > )] > > Which is what you're actually matching against. I'll clarify that in the > text. > > Derek > > > On Wed, Apr 15, 2009 at 6:17 AM, Heiko Seeberger < > heiko.seeber...@googlemail.com> wrote: > >> Hi, >> In the current version of Exploring Lift Listing 3.20 shows an example of >> a custom dispatch function: >> >> LiftRules.dispatch.append { >> case Req(chart :: balances :: endDate :: Nil, _, _) => ... >> >> How does this work? I cannot find a constructor for Req taking these >> parameters (a List as first one). >> >> Thanx >> -- >> Heiko Seeberger >> www.heikoseeberger.name >> OSGi on Scala >> >> >> > > > > -- Heiko Seeberger www.heikoseeberger.name OSGi on Scala --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---