Hi All,
We want to move to Sightly in our current AEM application. Is there a way I can use features provided by Sling 2.0 Taglib (http://sling.apache.org/documentation/bundles/sling-scripting-jsp-taglib.html ) inside my .html files?
Thanks!
Shehjad
Solved! Go to Solution.
Views
Replies
Total Likes
It is not possible to do this. Please let me know what features specifically you are looking for.
Views
Replies
Total Likes
It is not possible to do this. Please let me know what features specifically you are looking for.
Views
Replies
Total Likes
Correct, with sightly you can't use taglibs.
Views
Replies
Total Likes
Is there way .. we can get instance of pagecontext in sightly class?
Views
Replies
Total Likes
Can you point me to this object, so I can have a look?
It is not listed here: https://docs.adobe.com/docs/en/htl/docs/global-objects.html?wcmmode=disabled
Views
Replies
Total Likes
Checked the object, but to me it seems that PageContext is for JSP only.
What are you trying to achieve?
Views
Replies
Total Likes
Thank you very much for looking into it.
We are moving to Sightly for all the existing components which are developed in JSP
These existing JSP components connecting with the View Helpers which are java classes which are having logic to return the values to JSP.
These classes requires pageContext to be passed as their constructor argument.
To not to rework on the whole bunch of view helpers for the Sightly components, we are planning to create an instance of pageContext in the sightly class which extends WCMUsePojo.
Using that pageContext we can create the viewhelpers inside this class by passing this pageContext to the viewhelpers constructor.
Example what we are trying to do :
class SightlyHelper extebds WCMUsePojo {
//create a pageContext instance
ViewHelper helper = new ViewHelper(pageContextInstance)
}
So that we can use all viewhelper methods inside my Sightly component.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies