Expand my Community achievements bar.

SOLVED

Taglibs are not loading

Avatar

Level 4

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.

1 Accepted Solution

Avatar

Correct answer by
Level 9

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-tagli...

View solution in original post

3 Replies

Avatar

Correct answer by
Level 9

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-tagli...

Avatar

Level 4
@Pawan-Gupta - I have tried with JSP as well but it is not working. Can you please mark this as not resolved.

Avatar

Level 4
@Pawan-Gupta - If I directly use the taglib in the component, it is getting evaluated but if I author the taglibs via dialog (Touch UI), it is not working as expected,