EventListener | Community
Skip to main content
Unnikrishnankv
Level 3
October 16, 2015
Solved

EventListener

  • October 16, 2015
  • 3 replies
  • 1784 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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-manager.topic.html/forum__qsh1-hi_team_i_wantt.html

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

3 replies

WhoaShekhar
Level 10
October 16, 2015

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!

Unnikrishnankv
Level 3
October 16, 2015

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

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

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-manager.topic.html/forum__qsh1-hi_team_i_wantt.html

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