Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

AEM Static Component

Avatar

Level 2

My understanding about AEM static component is that, static component is a component  which is having no data operation logic written into it.  It is made of static content with dialog properties data(no logic performed on the dialog data or business data).

If my understanding is not correct please guide me how it is different from component along with all the required  steps to make it.

Thanks In Adance

Regards

Shahid

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

In AEM there is no term like static components. AEM Components can be used to get data from the dialog or some other sources. If you are getting data only from dialog without changing, you can directly read in HTL like ${properties.propertyname}

If you are manipulating values then you need to use the sling model(JAVA) or JS USE API and return values in HTL, there you can apply business logic. Business logic could be anything manipulating values, reading values from other sources, etc.

HTL Java Use-API

Adobe Experience Manager Help | Working with Sling Models in Adobe Experience Manager 

There is no difference in creating static or dynamic components, both are same.

AEM has a concept of static and dynamic templates

Dynamic vs static templates



Arun Patidar

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

In AEM there is no term like static components. AEM Components can be used to get data from the dialog or some other sources. If you are getting data only from dialog without changing, you can directly read in HTL like ${properties.propertyname}

If you are manipulating values then you need to use the sling model(JAVA) or JS USE API and return values in HTL, there you can apply business logic. Business logic could be anything manipulating values, reading values from other sources, etc.

HTL Java Use-API

Adobe Experience Manager Help | Working with Sling Models in Adobe Experience Manager 

There is no difference in creating static or dynamic components, both are same.

AEM has a concept of static and dynamic templates

Dynamic vs static templates



Arun Patidar