cq:Listener not working properly | Community
Skip to main content
New Participant
May 16, 2022
Solved

cq:Listener not working properly

  • May 16, 2022
  • 1 reply
  • 812 views

Hi I am adding the below code using AEM 6.5 On Premise

 

<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="cq:EditConfig"> <cq:listeners jcr:primaryType="cq:EditListenersConfig" aftercreate="REFRESH_PAGE" afterdelete="REFRESH_PAGE" afteredit="REFRESH_PAGE" afterinsert="REFRESH_PAGE" aftermove="REFRESH_PAGE" afterremove="REFRESH_PAGE"/> </jcr:root>

 

 

 

But whenever I drop the component page is not refreshing .

But whenever I delete,edit these property are working only 1 property is not working

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 arunpatidar

Hi,

There is no property called aftercreate but afterinsert

 

Properties
Description of each Property
beforedelete
The handler is triggered before the component is removed.
beforeedit
The handler is triggered before the component is edited.
beforecopy
The handler is triggered before the component is copied.
beforeinsert
The handler is triggered before the component is inserted.
beforechildinsert
The handler is triggered before the component is inserted.
Only operational for the touch-enabled UI.
beforemove
The handler is triggered before the component is moved.
afterdelete
The handler is triggered after the component is deleted.
afteredit
The handler is triggered after the component is edited.
aftercopy
The handler is triggered after the component is copied.
afterinsert
The handler is triggered after the component is inserted.
afterchildinsert
The handler is triggered after the component is inserted inside another component (containers only).
aftermove
The handler is triggered after the component is moved..

1 reply

arunpatidar
arunpatidarAccepted solution
New Participant
May 16, 2022

Hi,

There is no property called aftercreate but afterinsert

 

Properties
Description of each Property
beforedelete
The handler is triggered before the component is removed.
beforeedit
The handler is triggered before the component is edited.
beforecopy
The handler is triggered before the component is copied.
beforeinsert
The handler is triggered before the component is inserted.
beforechildinsert
The handler is triggered before the component is inserted.
Only operational for the touch-enabled UI.
beforemove
The handler is triggered before the component is moved.
afterdelete
The handler is triggered after the component is deleted.
afteredit
The handler is triggered after the component is edited.
aftercopy
The handler is triggered after the component is copied.
afterinsert
The handler is triggered after the component is inserted.
afterchildinsert
The handler is triggered after the component is inserted inside another component (containers only).
aftermove
The handler is triggered after the component is moved..
Arun Patidar