I'm back with another question.

I see that StatefulSnippet extends DispatchSnippet.  I understand what
DispatchSnippet is about.  But what is the reason that a
StatefulSnippet must also be a DispatchSnippet?  Aren't these concepts
(stateful vs. stateless, dispatch vs. reflection) unrelated?

Most of the StatefulSnippet examples that I've seen look like this:

class MySnippet extends StatefulSnippet {
    def dispatch = {
        case "add" => add _
        case "edit" => edit _
        case "foo" => foo _
    }
    def add(xhtml : NodeSeq) : ...
    ...
}

The dispatch definition doesn't seem to provide much value here.

W



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