April 14, 2020
Estimated Post Reading Time ~

Extending Adobe Experience Manager Core Components

You can customize Adobe Experience Manager's core components by extending them and modifying the Java logic. In this article, you are going to customize the Java object used by the Title component to add some static text to the end of the title. The way the Core Components are written, they reference back end Java objects, implemented using the Sling Models framework, by interface name. For example, the Title component’s HTML references an interface named com.adobe.cq.wcm.core.components.models.Title.

When the HTL script asks for implementation of this interface, Sling Models uses the implementation class which is associated with the nearest resource type. So, to provide a custom backing Java object, you need to create a Sling Model class which uses a closer resource type than the default.

The following illustration shows the Title component that uses a custom Java class that extends the Title core component class.

To read this development article, click https://helpx.adobe.com/experience-manager/using/extend_jave_corecomponents.html.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.