Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

WcmUsePojo activate()

santhoshsrg
Level 4
Level 4

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.

1 Accepted Solution
smacdonald2008
Correct answer by
Level 10
Level 10

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.

View solution in original post

1 Reply
smacdonald2008
Correct answer by
Level 10
Level 10

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.

View solution in original post