I don't have such a clear picture of what you're trying to do. If you need to 
refer to the instance of a snippet that exists on the same page, it looks to me 
like that data is private in S.snippetForClass.
Maybe you can nest the Tag tags in the ToDo snippet tag, have it instantiate a 
Tag instance, and call its xml processing functions directly, so that its SHtml 
setters etc. will refer to variables in the outer snippet's scope, i.e. the Tag 
instance it owns.

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