AEM Static Component | Community
Skip to main content
shahidp
Level 2
September 7, 2019
Solved

AEM Static Component

  • September 7, 2019
  • 1 reply
  • 2582 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

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

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
September 8, 2019

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