Taglibs are not loading | Community
Skip to main content
Level 6
June 3, 2021
Solved

Taglibs are not loading

  • June 3, 2021
  • 1 reply
  • 1312 views

Hello All -  I have a component which captures the script/clientlib url (Based on taglib) from the author and evaluating the tags and load the respective script on the page.

 

taglib.jsp

<%@include file="/libs/foundation/global.jsp" %>

<%@ taglib uri="http://company.com/clientLib-taglib" prefix="evaltag" %>

 

Component.html

<div data-sly-include="taglib.jsp"></div>
<sly data-sly-test.editor="${wcmmode.edit}">
<p>
ClientLib Component
</p>
</sly>
${properties.html @ context='unsafe'}

 

Authored scripts:

<evaltag:includeClientLibs async="true" defer="false" css="homePageClientlibs" verName="${projectVersion}" />

 

Basically I am trying to replace the taglib with our custom tags and load it on the page. For some reason, it is not working. The issue is with rendering and not with the taglib. Can someone tell me what could be the issue.

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 Pawan-Gupta

Hello,

 

I just OOTB global.jsp and it seems sightly doesn't support taglib

 

plz refer this as well - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-use-sling-2-0-taglib-feature-in-sightly/qaq-p/228916

1 reply

Pawan-Gupta
Pawan-GuptaAccepted solution
Level 8
June 3, 2021

Hello,

 

I just OOTB global.jsp and it seems sightly doesn't support taglib

 

plz refer this as well - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-use-sling-2-0-taglib-feature-in-sightly/qaq-p/228916

Level 6
June 3, 2021
@pawan-gupta - I have tried with JSP as well but it is not working. Can you please mark this as not resolved.