WcmUsePojo activate() | Community
Skip to main content
Level 4
April 16, 2019
Solved

WcmUsePojo activate()

  • April 16, 2019
  • 1 reply
  • 2823 views

When WcmUsePojo activate() override method is called?

Ref: Adobe Experience Manager Help | Using an WCMUsePojo class to populate an Experience Manager Touch UI Select Field

In that link, there are two java files which extends WcmUsePojo class and "activate" method is called in both files differently.

For HeroTextComponent, I think activate() is called when i press "tick" icon in dialog.

I am not sure how HtlDataSourceExample.activate() is called.

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 smacdonald2008

In that example - notice a dialog node resource type points to a script. This script calls the HtlDataSourceExample.activate():3

<sly data-sly-use.data="com.community.aem.dropdown.core.HtlDataSourceExample">

</sly>

The result is the Select field in the dialog is populated with a DataSouce object that is created in HtlDataSourceExample.

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
April 16, 2019

In that example - notice a dialog node resource type points to a script. This script calls the HtlDataSourceExample.activate():3

<sly data-sly-use.data="com.community.aem.dropdown.core.HtlDataSourceExample">

</sly>

The result is the Select field in the dialog is populated with a DataSouce object that is created in HtlDataSourceExample.