Posts Tagged ‘Sling Models’

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 org.apache.sling.models.impl 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 […]

Open Source AEM Core Components, A New Hope

“As Maine goes, so goes the nation” is a phrase that at one time was in wide currency in United States politics. The phrase described Maine’s reputation as a bellwether state for presidential elections.  As an Adobe Experience Manager (AEM) developer, it is not what proceeds from the Pine Tree State that concerns me, it is […]