Hi,
I have two classes in separated pages and I want one of them to extend the other. How
should I include the parent class?
I tried:
Page 1:
------------------
<%
public class A {
...
}
%>
------------------
Page 2:
------------------
#set($mydoc = $xwiki.getDocument("Include.Page1"))
$mydoc.renderedContent
<%
public class B extends A {
...
}
%>
------------------
But that's not working, i get this error - unable to resolve class A @ line 3.
I also tried to use parseGroovyFromPage(), but I wasn't successful.
So what is the correct way to make it work?
--
View this message in context:
http://n2.nabble.com/Include-a-groovy-script-into-another-groovy-script-tp2…
Sent from the XWiki- Users mailing list archive at
Nabble.com.