Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM dialog lisnters

ajinkayk6258253
Level 3
Level 3

Hi All,

I have a composite component which has a parsys in which i can add or remove an already added component. now i have a use case as i add a component in that parsys, page should get referesh as i add a component in tab it create a respective tab in header. i just don't want to add listner to child element , just want to add event listner to composite component so if i drop any component in it that listner will kick off and page should get refresh?

1 Accepted Solution
Veena_Vikram
Correct answer by
Community Advisor
Community Advisor

Hi @ajinkayk6258253 

 

    I am not sure if I understood your problem correctly. But what I understood in simple words is that you want the page to refresh as soon as you make any change in the component !! 🤔 . If Yes, then may be you are looking for a cq:listeners node. Please refer here. The 

afteredit --> REFRESH_PAGE  (property -->value)

 on this node will refresh the page as soon as te dialog is submitted after content edit.

 

Thanks

Veena  

View solution in original post

2 Replies
RajaKarteek
Level 1
Level 1

Hi, 

you can try with  "cq:editConfig"

Veena_Vikram
Correct answer by
Community Advisor
Community Advisor

Hi @ajinkayk6258253 

 

    I am not sure if I understood your problem correctly. But what I understood in simple words is that you want the page to refresh as soon as you make any change in the component !! 🤔 . If Yes, then may be you are looking for a cq:listeners node. Please refer here. The 

afteredit --> REFRESH_PAGE  (property -->value)

 on this node will refresh the page as soon as te dialog is submitted after content edit.

 

Thanks

Veena  

View solution in original post