Extend local use-class in Sightly
Hi,
in Sightly I use local classes for my components. This classes should extend an abstract class. But the abstract class can’t be found in the classpath. It does not even get compiled.
In fact I have a file structure like this:
/apps/myproject/components
AbstractComponent.java
/apps/myproject/components/component1
component1.html
Component1.java
component1.html contains the Sightly directive:
<sly data-sly-use.bean="Component1">
Component1.java inherits from AbstractComponent:
package apps.myproject.components.component1; import apps.myproject.components.AbstractComponent; public class Component1 extends AbstractComponent { … }(I don't know where the '5.' comes from. I didn't enter this - It seems to be a feature of this forum?)
What can I do to compile the AbstractComponent so it can be found in the classpath?
Thank you
Peter