Or you can use S.locateMappedSnippet ... but first try to see if
nested snippet won't do the trick for you ...

On Jun 30, 10:17 am, "marius d." <marius.dan...@gmail.com> wrote:
> Can you paste some code?
>
> Essentially we support nested snippets so your snippet can simply
> return a markup containing another snippet and it will be invoked. If
> you really want to manually invoke a snippet from another snippet and
> if you are not using StatefulSnippets you can just instantiate the
> class and call your function and pass it the right NodeSeq.
>
> Br's,
> Marius
>
> On Jun 30, 5:36 am, g-man <gregor...@gmail.com> wrote:
>
> > I am enhancing the Todo app by adding tags.
>
> > I have retained the TD.scala snippet to manage the Todos on my page,
> > and added a TG.scala snippet to handle tags on the same page, which
> > works well for creating new and listing in both cases.
>
> > Now I want to filter my Todos list by a Tag instance I select from my
> > list, and therefore need to pass the id of the selected tag over from
> > the TG snippet to the TD snippet, where it can be used as a filter
> > argument for a find method.
>
> > The problem is that scala says it cannot find snippet TD, whose method
> > I am calling as TD.list from the TG.scala snippet. I have tried all
> > kinds of explicit importing, but no luck.
>
> > So,  can a snippet call a snippet, or is that controlled only from the
> > web page?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to