Both WCMUse and Sling Modal returns the value to the sightly. What is the difference between both of them? And when should one be used?
Views
Replies
Total Likes
[It is not a answer]
Some reference post upfront coming into my mind:-
// Implementing wcmUse (deprecated now use WCMUsePojo) is different from Sling Models. You can use both from HTL (formerly known as sightly) (not together), but according to [1] you don't need to have WcmUse and the activate() method at all. I've found [2] which covers the proper usage of wcmUse pojos with Sightly.
[1] https://sling.apache.org/documentation/bundles/models.html
[2] http://blogs.adobe.com/experiencedelivers/experience-management/sightly-intro-part-4/
~kautuk
Refer the below page from Sling site that provides a comparison for picking the best Use Provider
Views
Replies
Total Likes
Also WcmUse is bound to your component, while your sling-model can be reuse across your application.
Views
Replies
Total Likes
When working with WCMUse - you need to use WCmUsePojo now.
As Feike says - this is the Java part of your component where you can define a bean you were you can populate values and display the values in the front end component. See:
http://scottsdigitalcommunity.blogspot.ca/2016/07/creating-aem-html-template-language.html
A video is also included.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies