AEM 6 - Sightly Page Component + Inheritance | Community
Skip to main content
Level 8
October 16, 2015
Solved

AEM 6 - Sightly Page Component + Inheritance

  • October 16, 2015
  • 12 replies
  • 5228 views

Good morning.
We have a base page component written using sightly, with a sling:resourceSuperType of "wcm/foundation/components/page".  We then have another page component, let's just call it "page_component" that has a sling:resourceSuperType which is the base page component.  When i create a page with the base page component, everything works correctly, however, when I create a page using the "page_component", I get the following error:

"Caused by: io.sightly.java.api.SightlyUseException: Required script resource could not be located: head.js"

Obviously the entire error is longer, but that's the important line.   With page components previously, the inheritance of files would go back to the ootb component.  That doesn't seem to be the case with sightly and the use of javascript files.  Is this the intended behavior and i need to create a local head.js file, or is there an extra step that needs to be taken with a sightly page component?

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Peeter_Piegaze

This has been confirmed as a bug. A work-around may be, as mentioned by @orotas, to use absolute paths in data-sly-use.

12 replies

smacdonald2008
Level 10
October 16, 2015

Are you following AEM docs or another on-line resource?

GK-007
Level 9
May 22, 2016

We are facing this issue after upgrading from AEM 6.0 SP3 to AEM 6.2.

What we supposed to do in this case??

Please advise me.

Thanks,

Kishore