Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

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

Avatar

Administrator

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.



Kautuk Sahni
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

0 Replies