Skip to main content

Posts Tagged ‘Sling Models’

Programmer Working In A Software Developing Company Office

Ready, Get Set, Go! on AEM…

AEM has a vast infrastructure, and it requires time to hold expertise on it. Every expert was once a beginner, so you are never too late to start and have fun on AEM. In this blog, we will focus on the developers’ perspective of AEM and how one can start as an AEM developer. We […]


Code Reuse With Custom Sling Model Injectors

In my blog Writing Less Java Code in AEM with Sling Models, I talked about writing less code using Sling Models. I followed that up with Writing Less Java Code in AEM with Sling Models & Lombok. I talked about code generators helping in saving time by not writing redundant codes. You could say I […]

Writing Less Java Code in AEM with Sling Models & Lombok

AEM is a robust platform full of useful APIs and frameworks available at our disposal. Understanding what’s in the box will help us write less code. In my previous blog post, I covered one of the most used frameworks, Sling Models. Plus, I showed a real-world example with multi-fields. For this blog post, we will […]

Close Up Software Developer Programming Code On Screen

Writing Less Java Code in AEM with Sling Models

I love writing code. What I love more is writing less. Less code means fewer unit tests because you have much less coverage to hit. Well organized, modularized, short, and concise. How do you achieve this? Good software engineering practices, code generators, and leveraging existing frameworks and APIs. Leveraging Frameworks and APIs As an AEM […]

Using Sling Models With Nested Composite Mulitifields in AEM 6.3+

You probably already know that Adobe added support for composite multifield in 6.3. Adobe also added support for nested multifield and nested composite multifield in AEM 6.4.   Nested? Composite? Huh? Take a look at the AEM 6.4 docs for multifield Let’s define them   Multifiled: Allows authors the ability to add a list of items, each […]

Export Header

No Servlets Required: Exporting Data with Sling Models

In version 1.3.0 of Sling Models the Apache Sling team introduced Sling Model Exporter, a new capability to directly export models as a Java Servlet. This version of Sling Models is available in AEM 6.3+. I finally have a chance to use the new Sling Model Exporter and I found it reduced the amount of […]

AEM Development Quick Tip: Component Unique ID

Often times, you need a unique ID for the AEM component. You either need to trigger custom action with JS or make a backend server side call. A hard-coded field ID is not unique if the component is dragged and dropped multiple times in the page. This post will give you a quick tip to […]

How To Switch From WCMUsePojo to Sling Models in AEM Part Three – Custom Injectors

When you are writing Sling Models code, you are constantly invoking injectors for the objects you use in your Sling Models class. There are eight standard injectors Sling provides out of the box currently (based on version 1.3.9.r1784960 of installed in AEM 6.3). But sometimes you may find the eight injectors don’t meet a […]

How To Switch From WCMUsePojo To Sling Models in AEM Part Two – JUnit Test

As you may know, unit testing and test-driven development (TDD) are important for making sure your code complies with the design, is scalable among your team, and provides automated regression. Often times, the JUnit test and component back-end Java code come hand in hand. An AEM developer who writes the component logic is also responsible […]

How To Switch From WCMUsePojo To Sling Models in AEM Part One – Component

Looking back at Adobe Experience Manager’s (AEM) component development path (especially if you started from 6.0 or earlier), you likely have used a variety of ways to provide back-end logic to components. Beginning with JSP (or even scriptlets), to abstract component Java class with page context or binding objects, to Adobe’s WCMUse or your custom implementation of […]

AEM 6.3 First Looks: AEM Core WCM Components

AEM Core WCM Components (commonly referred to as core components) are a set of production-ready components Adobe introduced with Adobe Experience Manager (AEM) 6.3. They are open source and delivered over Github, so the entire AEM developer community is welcome to provide feedback and contribute to the code base (cue applause). These components use the same […]

Use Digital Marketing Layers Like an #AEMRockstar

This year’s Adobe Summit was the biggest and best yet. It was also the inaugural year for the AEM Rockstar competition and session. Dan Klco, an experienced Adobe Digital Marketing Technical Lead, Solution Architect, Consultant and Advisor from Perficient, nailed his presentation and wowed both attendees and the judging panel. As the winner, he took home […]

Load More