내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

WcmUsePojo activate()

Avatar

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 채택된 해결책 개

Avatar

정확한 답변 작성자:
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.

원본 게시물의 솔루션 보기

1 답변 개

Avatar

정확한 답변 작성자:
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.