How to create reusable dialog.xml

Introduction The cqinclude xtype allows you to create a dialog.xml heritates of another one. In example, we have a button dialog which is include in parrent dialog. But you face a problem when multiple properties have the same name. In my previous example, both the button and parrent dialog have…

Continue reading

How to disable a java logging class

AEM 6.0 doesn’t allow to disable a particular JAVA Class logger inside the web console log support (/system/console/slinglog), but it is possible via Felix configuration file. First of all, you have to create a file with the following name under the /apps/<project_dir>/config directory : org.apache.sling.commons.log.LogManager.factory.config-OFF.config. The ‘off’ suffix could be a…

Continue reading

Cron / Batch with AEM

How to correctly implement a CRON/BATCH within AEM ? That’s the question of this article. Simple example The easiest way to implement a CRON job within AEM is the apache sling scheduler service. This service is based on a java.lang.Runnable class and can be registered as below.

With this…

Continue reading

Sightly – Quick Reference

Sightly was introduced by AEM 6.0 to replace JSP by a new HTML Templating System. This post is a quick reference about Sightly. A list of best practices and things to know. Java class or server side Javascript With Sightly, you can create a component with two methods. By using…

Continue reading