Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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

kautuk_sahni
Community Manager
Community Manager

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.

Topics

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

0 Replies