Expand my Community achievements bar.

SOLVED

EventListener

Avatar

Level 3

Hello Team,

I need to create EventListener for particular component edit and delete events. How we can i create EventListener for particular component. Please help me do that ...

 

Thanks!, 

Devakrishna

1 Accepted Solution

Avatar

Correct answer by
Level 10

This exact question was asked and answered - we pointed you to articles that talk about creating an Event Handler for AEM. See:

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

You use the javax.jcr.observation.EventListener API. 

View solution in original post

3 Replies

Avatar

Level 10

Hi There,

Thanks for reaching out to Adobe Community.

Please see the below doc and see if it helps:

http://docs.adobe.com/docs/en/aem/6-0/develop/components.html#cq:listeners

Thanks!

Avatar

Level 3

Shekhar_Dhiman wrote...

Hi There,

Thanks for reaching out to Adobe Community.

Please see the below doc and see if it helps:

http://docs.adobe.com/docs/en/aem/6-0/develop/components.html#cq:listeners

Thanks!

 

hi Shekhar , 

Thanks for your replay .. 

    how we can trigger java class by using cq listeners. is it possible ?. I have tried with servlet and ajax. is there any alternate  way to do that..

Thanks!

Devakrishna

Avatar

Correct answer by
Level 10

This exact question was asked and answered - we pointed you to articles that talk about creating an Event Handler for AEM. See:

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

You use the javax.jcr.observation.EventListener API.