[COMPONENT] Set a CQ5 component to editable or not editable
Question:Is it posible if i want to set a cq5 component C editable in page A, but not editable in page B.Solution:You can set ComponentContext.BYPASS_COMPONENT_HANDLING_ON_INCLUDE_ATTRIBUTE before the...
View Article[COMPONENT] CQ filter
Sling Request Invocation Chain Implementing Sling FiltersRegistration of FiltersStandard Servlet Filter (javax.servlet.Filter)Need to be registered as Service („manually“ or SlingFilter SCR...
View Article[WIDGET] Multifield - Create a multi-fields panel to use with multifield
Layout:Config on dialog:<map jcr:primaryType="cq:Widget" fieldLabel="Field label" hideLabel="false"...
View Article[DIALOG] Active a tab of dialog
How to activate/inactivate a tab on a dialog base on an event of item?Resolution:In the sample code, we add a listener to listen ‘activate’ event for dialog.<listeners...
View ArticleInstall Oracle Jdbc driver in your Maven local repository
If you are using Oracle, you must first install your Oracle JDBC driver in your local Maven repository.Here is how to proceed:Step 1 - Download the Oracle JDBC driverPlease download manually the Oracle...
View Article[SYSTEM] Get administrator session in service
Goal: To write data/nodes to content (specifically to /etc/userdata) when a user logs in.We can achieve this in 2 ways (either way, the user needs to be a 'system user')Process 1:Step 1: Use in-built...
View Article[AEM] hide parsys on live copy page
Purpose: I want to hide the parsys in the live copy pageSolution:Add this script below the code include parsys<cq:include path="par"resourceType="foundation/components/parsys"/><c:if...
View Article[AEM] Setting Up a Dispatcher on OS X
Setting Up a Dispatcher on OS XPurpose: This guild is to show you how to set up a dispatcher on OS X step by stepPrepare:1. OS X machine with Apache installed and enabled2. Start AEM...
View Article[CRX] Accessing CRX Remotely using Jcr Remoting Based On Webdav (DavEx)
Goal: To access CRX remotely in a client java program, JCR Remoting (DavEx). This post is on using JCR Remoting (aka WebDav remoting,...
View Article[CQ/AEM] SegmentNotFoundException
Issue:When we see the error "org.apache.jackrabbit.oak.plugins.segment.SegmentNotFoundException: Segment 6e0a804f-0d75-48a8-a579-ebf34e58e763 not found" one day, and you can not open any pages, or can...
View ArticleConfig tomcat
Goal: Configure to load tomcat on startup on MAC SierreWrite launchd_tomcat_wrapper.sh#!/bin/bashfunction shutdown(){ date echo "Shutting down Tomcat"...
View Article[USER] disable user
How to disable AEM user?Disable:curl -u user:pass -F "disableUser=Not required" http://localhost:4502/home/users/path/to/user.rw.htmlEnable:curl -u user:pass -F "disableUser="...
View Article[Repository] Useful Oak oak-run Commands
Start a Java UI to explore the AEM Repository and determine which tar file contains which piece of contentjava -Xmx4g -jar oak-run-1.6.0.jar explore --segment=true...
View Article[Query Builder] Advanced Search
Using the Advanced SearchWhen using a list, select from the 'Build list using' options 'Advanced Search.' This will open a new tab in the list window with one text box labeled: 'Querybuilder Predicate...
View ArticleUpgrade to AEM 6.5
Error:[ERROR] /Users/mukmayu/All_Documents/Project_Official/Manulife_CEA/Code_Workspaces/AEMCodeAll/aem-global/core/src/main/java/ca/manulifeglobal/core/util/AssetAccessUtils.java:[99,7] cannot access...
View Article