
Sourced Code Blog
41 FOLLOWERS
Welcome to Sourced Code Blog. This AEM blog provides AEM tutorials and AEM solutions. We will cover new topics like experience fragments, personalisation, editable templates, Apache Sling, OSGI, and much more.
Sourced Code Blog
12h ago
In the world of web development, ensuring universal access is required. ARIA (Accessible Rich Internet Applications) attributes are key players in this mission. This blog is your go-to library, offering developers a swift reference for essential ARIA attributes, quick descriptions, and code snippets for easy implementation.
Why ARIA Attributes Matter: Accessibility isn’t just a choice; it’s a legal requirement. Using ARIA attributes is crucial for inclusive web applications, especially for users relying on assistive tools like screen readers. Compliance with accessibility standards is increasi ..read more
Sourced Code Blog
1d ago
A robust security strategy is pivotal to safeguarding applications. As an AEM developer, we must really understand the SlingSafeMethodsServlet, an invaluable feature within the Apache Sling framework. This article explores the core concepts, practical benefits, and the heightened security it brings to servlet development.
The org.apache.sling.api.servlets.SlingSafeMethodsServlet is an extension of the trusted HttpServlet in Apache Sling, introduces a focused approach to reinforcing security by limiting HTTP methods to read-only operations. This deep dive into its functionality unveils the foun ..read more
Sourced Code Blog
1w ago
It’s easy to lose track of the incredible milestones and accomplishments that shape our professional journey. That’s where the often-overlooked but incredibly powerful tool, the “Self-Praise Document,” comes into play. If you don’t already have one, let’s explore why creating a self-praise document might be the game-changer you need for a quicker path to promotion.
Summary:
Why a Self-Praise Document is Your Ticket to Promotion
Choose Your Platform
Identify Impactful Achievements
Include Specifics
How to Create Your Self-Praise Document for Promotion Success
Balancing Act: Quality Over Qua ..read more
Sourced Code Blog
1w ago
In the dynamic realm of Java programming in AEM, effective resource management is a cornerstone of writing robust and reliable code. The “try-with-resources” statement, introduced in Java 7, emerges as a powerful ally in simplifying resource handling. This article delves into the practical implementation of “Try-With-Resources” within the context of a specific code snippet, emphasizing the importance of never forgetting to close the session.
The adoption of “Try-With-Resources” in your code exemplifies a commitment to clean, efficient, and error-resistant Java programming. By embracing this fe ..read more
Sourced Code Blog
1M ago
In this article, I present a straightforward yet powerful solution that demonstrates how to seamlessly convert Excel data into JSON format using Adobe Experience Manager (AEM). By implementing a custom servlet, I will illustrate the process of converting an Excel sheet named ‘example.xlsx’ into structured JSON data; it can be downloaded below for you following this tutorial. This tutorial is validated on both AEM 6.5 with the latest Service Pack and AEM as a Cloud Service (AEMaaCS), ensuring its compatibility with diverse AEM environments.
Resource File:
example.xlsx
Request URI:
The request U ..read more
Sourced Code Blog
1M ago
While working with the JCR SQL2 Queries, you may encounter scenarios where content is distributed across various branches of the repository. Querying these branches efficiently is key to implement features to capture requirements. In this article, we will focus o how to collect and query for distributed across various branches of the repository. Using the ISDESCENDANTNODE feature of the JCR SQL Query proves it possible.
Understanding ISDESCENDANTNODE
ISDESCENDANTNODE is a condition in JCR SQL2 that checks if a node is a descendant of another, based on their paths. It is particularly beneficial ..read more
Sourced Code Blog
2M ago
The “Explain Query Tool” tool assists developers in understanding, optimizing, and debugging search queries, which are crucial for the AEM’s performance and accurate content delivery.
Understanding the Explain Query Tool
The Explain Query Tool essentially breaks down and explains the steps and processes a query goes through in AEM. Think of it as a ‘debug mode’ for your search queries. It provides insights into how the system interprets the query, the indexes it leverages, the estimated cost of the query, and other essential metrics.
Benefits of Using the Explain Query Tool:
Performance Analy ..read more
Sourced Code Blog
2M ago
In the context of “Retrieving the Current Page in an AEM Servlet via ResourceType”, it is great to understand how this is done. This guide provides a simplified walkthrough on how you can adeptly achieve this. In the code example, we will associating the servlet with a resourceType.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.example.aem.servlets;
import org.apache.sling.api.SlingHttpServletRequest;
import org.apache.sling.api.SlingHttpServletResponse;
import org.apache.sling.api.servlets.SlingAllMethodsServlet ..read more
Sourced Code Blog
3M ago
The AEMaaCS platform contains the Adobe AEM Core Components pre-installed into the /libs folder, but however, AEM 6.5 on-prem does automatically contain this; we must install it manually. For legacy AEM 6.5 project utilizing the Adobe AEM Core Components, they must configure & install this library to each environment (authors, publishers) with the correct version. Manual installation is teedius and prone to errors, so its best practice to automatically install the correct versions.
In this article we will walk through step by step how to embed the Adobe AEM Core Components into your projec ..read more
Sourced Code Blog
3M ago
This blog article serves as your guide to seamlessly integrate and deploy the wcm.io Context-Aware Configuration Editor – a powerful tool that streamlines configuration management within AEM projects.
Throughout this article, we will delve into the step-by-step process of configuring, embedding, and deploying the wcm.io Context-Aware Configuration Editor. By following these instructions, you’ll be able to harness the capabilities of this editor to automatically install configuration changes across all environments when your code is built via Maven and deployed to AEM. When it comes to deployin ..read more