AEM Code Snippets Tutorial

AEM code snippets : export page data as json format using sling model exporter

 

In my previous article’s you have seen how to export page data as a JSON format using servlet, now, I am going to explain exporting page content as JSON using sling models exporter,  using sling model exporter you can get …

AEM code snippets : how to call a servlet using resource type

Here, I am going to explain to you how to a servlet using resource type, this is developed on AEM 6.3, so you need to have below OSGI dependencies in your pom.xml file, if you created your project using AEM …

AEM code snippets : export page data as json format using sling servlet

 

Here, I am going to explain to you how to export page data as a JSON format using sling servlet, this is developed on AEM 6.3, so you need to have below OSGI dependencies in your pom.xml file, if …

AEM Code Snippets : OSGI Annotations – Servlet

Here, I am going to explain how to add OSGI annotations to custom servlet, the SCR annotations are deprecated in AEM 6.3, so the people who are working on AEM 6.3 must use OSGI annotations, the OSGI annotations are very simple you do not need to …

AEM code snippets : How to get multifield values into json format using Gson

Here, I am using Gson to convert multifield values into JSON format, the first thing which we need to do is first load the Gson maven dependency

AEM Code Snippets : OSGI annotations – Service

Here, I am going to explain how to add OSGI annotations to custom service, the SCR annotations are deprecated in AEM 6.3, so the people who are working on AEM 6.3 must use OSGI annotations, first you need to add …

AEM Code Snippets : How to read child nodes in aem ?

How to read child nodes of multifield control or any node using Sling models and WCMUsePojo class, this is just code snippet’s not going to talk anything theoretically if you want to have conceptual knowledge I suggest you read either …