Search

AEM HUB

Customizing Granite UI Form Field Component

In this article, I will be showing how to customize a Granite UI Field component with an example. Use case: Customize the Granite UI Textarea field component to display the number of characters the author has entered in the field... Continue Reading →

AEM with Angular2

In this post, I will be sharing my view on Integrating AEM 6.1 with Angular2 and other front-end technologies with an example. Getting started  Requirement AEM component with Angular2. Create an AEM with Angular2 Form Component which displays address suggestions... Continue Reading →

AEM with Angular2 – part2

Modify AEM Component to render Angular2 component content In the AEM component’s HTL file “contactdetails.html” replace the entire Form html portion with the below Angular2 component selector, <contact-details message='${contactForm.contactDetails.contactJson}'>Loading contact form......</contact-details> this selector will be used to render the Angular2... Continue Reading →

Junit tests using Mockito & PowerMockito

Contents Unit Test Mock Spy Difference between Mock and Spy Difference Between doReturn()/when and When/thenReturn()  Ways to Initialize the Mocks Why Mockito does not mock static methods Mocking a Static Method of an external class Mocking static void method call ... Continue Reading →

CERTIFICATION : – AEM Run Mode

Which is OOTB run mode applied at the time of installation of AEM instance? nosamplecontent author replicate loadsamplecontent How do you specify the osgi config of a java class in Publish runmode ? /apps/system/config/org.apache.felix.webconsole.internal.servlet.OsgiManager jcr:primary type= sling:osgiConfig /apps/system/config/org.apache.felix.webconsole.internal.servlet.OsgiManager.config jcr:primary type=... Continue Reading →

Write/Read Binary data into/from JCR Node.

Write Binary Data :  We can use Node API classes ValueFactory and Value to store binary data into JCR. ValueFactory can be used to create Binary object from InputStream and Value object from binary object. Read Binary Data: Example :

AEM 6.2 User Migration

AEM Instance migration  is common in real world , Package manager does help when you want to move users and groups privileges from one AEM instance to another. User Migration Steps : Go to package manager Create a package for... Continue Reading →

Run Modes in AEM

Run modes in AEM allow you to configure AEM instances for specific purposes. For example, We can configure environment specific OSGI Services meta data manually from felix console, But the problem here is whenever new build is deployed the OSGI... Continue Reading →

Blog at WordPress.com.

Up ↑