Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Taglibs are not loading

Avatar

Level 2

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
Community Advisor

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

2 Replies

Avatar

Correct answer by
Community Advisor

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,