AEM In Action: Let's work on a AEM component development with Sling Model and TDD | AEM Community Blog Seeding | Community
Skip to main content
kautuk_sahni
Community Manager
Community Manager
December 1, 2020

AEM In Action: Let's work on a AEM component development with Sling Model and TDD | AEM Community Blog Seeding

  • December 1, 2020
  • 0 replies
  • 804 views

BlogImage.jpg

AEM In Action: Let's work on a AEM component development with Sling Model and TDD by Veena vikraman

Abstract

In this episode of AEM In Action, I will try to walk you through the development of a component along with Sling Model. Will also try to do TDD for Sling Models. This video is going to be pretty long since I tried to do development from scratch. We will work together to develop the component and sling model in AEM. Sling Models are pure annotation driven POJOs. Since this video is going to be really long, please make use of the chapters below so that you can skip to parts which is important for you. Once again thanks .

0:00 Introduction - a brief history of my experience with JSPs
6:25 Component explanation
9:20 Add component on to the editable template and page
12:10 JSONs for TDD
15:35 Write the Sling Model
18:10 Create the test class
26:20 PostConstruct Annotation
35:05 Modify test
39:05 Modify HTL to add Sling Model
41:13 Test the page

Read Full Blog

AEM In Action: Let's work on a AEM component development with Sling Model and TDD

Q&A

Please use this thread to ask the related questions.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.