I get following problem when trying to access a testOps.list method
from a template
WARN - Snippet Failure: SnippetFailure(/ -> ParsePath(List
(index),,true,false),Full(testOps.list),Method Not Found)
I checked that LiftRules.addToPackages correctly names the package and
other snippets work. Strangely enough during testing and trying dummy
methods I discovered that if the method defined like this:
def list(html: NodeSeq) = {
val items = Item.findAll()
items.flatMap(item =>
bind("item", html,
"title" --> Text("Lala"))
)
}
it does not work but if it is defined like this
def list(html: NodeSeq) = {
val items = Item.findAll()
bind("item", html,
"title" --> Text("Lala"))
}
the snippet is found correctly. What am I doing wrong? Please help, I
wasted almost the whole day on it.
--
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=.