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

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

Mark Solution

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

해결됨

AEM 6 afterinsert event Granite UI

Avatar

Level 1

Hello 

my custom component doesn't fire the afterinsert event on Granite UI.

The listeners configuration is
afteredit = function () { console.log('afteredit'); }
afterinsert = function () { console.log('afterinsert'); }

(This are tests function, what I need is to use REFRESH_PAGE)

both events fire well on Classic UI, but afterinsert event doesn't work on Granite UI

Do you have a clue to help me resolve that ?
Is there a way I can debug this event ?

Thank you for your answer

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 7

Hi,

I have tried what you said and I'm able to get the alert.

I tried below -

I have created cq:editConfig and under that I have created cq:listeners and added property afterinsert. To this I have added

function(){alert("Hi");}

I'm getting the alert.

Thanks,

AryA.

원본 게시물의 솔루션 보기

5 답변 개

Avatar

Level 10

Here is Granite API docs:

http://docs.adobe.com/docs/en/cq/current/touch-ui/granite-reference.html

Now if events are not firing in your code where its suppose to be firing - it may be a bug. If this continues - please file a bug - 

http://helpx.adobe.com/marketing-cloud/experience-manager.html

Avatar

Level 10

Here is Granite API docs:

http://docs.adobe.com/docs/en/cq/current/touch-ui/granite-reference.html

Now if events are not firing in your code where its suppose to be firing - it may be a bug. If this continues - please file a bug - 

http://helpx.adobe.com/marketing-cloud/experience-manager.html

Avatar

Level 7

Hi. afterinsert is working fine for me in touch-ui view with REFRESH_PAGE. For u it's not working with REFRESH_PAGE? I will check it with ur functions and let u know.

Avatar

Level 2

I have a component that has a parsys inside of it.

If the parsys is included in the sightly html component file; afterinsert is not fired.

 

As soon as I remove the parsys from the component it fires. Please help! 

Avatar

정확한 답변 작성자:
Level 7

Hi,

I have tried what you said and I'm able to get the alert.

I tried below -

I have created cq:editConfig and under that I have created cq:listeners and added property afterinsert. To this I have added

function(){alert("Hi");}

I'm getting the alert.

Thanks,

AryA.