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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Taglibs are not loading

test1234567
Level 2
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
rush_pawan
Correct answer by
Community Advisor
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

3 Replies
rush_pawan
Correct answer by
Community Advisor
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

aemninja
Level 4
Level 4
@rush_pawan - I have tried with JSP as well but it is not working. Can you please mark this as not resolved.
aemninja
Level 4
Level 4
@rush_pawan - 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,