Solved
data-sly-call not invoked in sightly
Hi
I have a component SightlyTest in which i have following file :
SightlyTest.html :
Hello Sightly ${properties.description} <div data-sly-use.extra="extra1.html"> <div data-sly-call="${extra @ text=properties.description}"></div> </div>extra1.html :
<template data-sly-template.extra="${@ text}" data-sly-use.extraHelper="${'ExtraHelper' @ text=text}"> <p>${extraHelper.reversedText}</p> </template>ExtraHelper.java :
package apps.AEMProject.components.content.SightlyTest; import com.adobe.cq.sightly.WCMUse; public class ExtraHelper extends WCMUse { private String reverseText; @Override public void activate() throws Exception { String text = get("text", String.class); reverseText = new StringBuffer(text).reverse().toString(); } public String getReverseText() { return reverseText; } }But noting shows as output, what i can see only Hello Sightly . ${properties.description} shows the value of property.
Any Idea.