WcmUsePojo activate()

Avatar

Avatar

santhoshsrg

Avatar

santhoshsrg

santhoshsrg

16-04-2019

When WcmUsePojo activate() override method is called?

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

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.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

16-04-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.

Answers (0)