Component showing changes after manual referesh | Community
Skip to main content
New Participant
January 24, 2024
Solved

Component showing changes after manual referesh

  • January 24, 2024
  • 2 replies
  • 563 views

Hi, I am facing an issue where my custom component is showing me the changes that I have made in the dialog. I have to refresh it manually after editing it to reflect those changes. Is there a way to fix this?

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 Madhur-Madan

Hi @ankit_gangishetti ,

You can try adding cq:listners under cq:editConfig in your component and it should solve the issue. After edit is the property which would refresh the component after edit.

 

2 replies

Madhur-Madan
Madhur-MadanAccepted solution
New Participant
January 24, 2024

Hi @ankit_gangishetti ,

You can try adding cq:listners under cq:editConfig in your component and it should solve the issue. After edit is the property which would refresh the component after edit.

 

EstebanBustamante
New Participant
January 24, 2024

Hi,

 

Please try using the cq:EditConfig with the property to "refresh" the component after changes are applied: https://helpx.adobe.com/uk/experience-manager/kb/RefreshPageWhenModifyDialog.html 

Something like this, or using the "REFRESH_SELF" depending on what you are tyring to accomplish:

 

<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" afteredit="REFRESH_PAGE"/> </jcr:root>

 

You can learn more about this config here: http://www.sgaemsolutions.com/2019/01/ootbcustom-cqlisteners-in-cqeditconfig.html

 

Hope it helps 

Esteban Bustamante