On Mon, Dec 28, 2009 at 8:04 AM, Adam Warski <[email protected]> wrote:
> Hello, > > > Yes, the article is out of date now... Lift now makes sure that multiple > references to a single snippet in the same request context use the same > instance of that snippet. > I see, so the rationale behind using dispatch snippets is out of date also. > Except that you save one reflection call per page/request. So are there any > reasons to use DispatchSnippets now? > DispatchSnippets support dynamic dispatch: you can change how tags are dispatched based on some state. With (reflection-based) snippets, there's a direct binding between the tag and the class name + method. Well, unless you override LiftRules.snippetDispatch. alex -- 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.
