In my Lift 2.1 application I have a snippet class that used to look like this:
class CourseSnippet {
def listCourses(in:NodeSeq):NodeSeq = { ... }
...
}
It used to work just fine. Now I wanted to refactor it like so:
abstract class AbstractCourseSnippet {
def listCourses(in:NodeSeq):NodeSeq = { ... }
...
}
class CourseSnippet extends AbstractCourseSnippet
But now I get the following error message when I try to access a page
that contains the snippet:
Error processing snippet courseSnippet.listCourses.Reason:Method Not Found
There are possible matching methods (listCourses), but none has
the required signature:
def listCourses(in: NodeSeq): NodeSeq
XML causing this error:
<lift:courseSnippet.listCourses>
<h3><smlt:name></smlt:name></h3>
<smlt:description></smlt:description>
</lift:courseSnippet.listCourses>
It gets weirder... If I change the CourseSnippet class like this it works again:
class CourseSnippet extends AbstractCourseSnippet {
override def listCourses(in:NodeSeq):NodeSeq = super.listCourses(in)
}
So is this a bug or am I doing something wrong?
Donald
> --
> You received this message because you are subscribed to the Google Groups "Lift" group.
> To post to this group, send email to lif...@googlegroups.com.
> To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.