AEM component refresh issue after editing/updating content | Community
Skip to main content
mahabubali
New Participant
October 12, 2023

AEM component refresh issue after editing/updating content

  • October 12, 2023
  • 2 replies
  • 2933 views

Hi Community members,

 

Greeting of the day, hope you all are doing well.

 

Recently we have removed a 3rd party UI framework in our Customer portal application which is running on the AEM 6.5.10. We replaced framework code with custom code(components, templates, sling-models).

 

After doing this change:

  1. Any of the components are not refreshing after adding/updating the content from component properties and saving the properties dialog. After refreshing the whole page only the content is getting refreshed on the page.
  2.  It was working earlier with that  framework, and it also working in we-retail test application pages also.
  3.  I tried to add cq:editConfig -> cq:listeners nodes and REFRESH_SELF, REFRESH_PAGE, REFRESH_PARENT attributes also. But it is not working.
  4. I cross checked all the page component/template code with test site and framework code, but there is no clue.
  5. Could you please observe the below screen shots for more details, and suggest any solution

I thank you in advance.

-Mahabub Ali Mohammad.

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

2 replies

Aditya_Chabuku
New Participant
October 12, 2023

Hi @mahabubali , 

 

Did you happen to see any JS errors in the console? May be page is not able to load because of those issues. 

Please also try the solution given by @a_h_m_imrul  and check the console & error logs once again.

 

Let us know, if it works!

 

Thanks,

Aditya Chabuku

 

Thanks,Aditya Chabuku
A_H_M_Imrul
New Participant
October 12, 2023

@mahabubali 

Usually an EditConfig should serve your purpose in this scenario. Are you getting any error in the browser console or even in the error log? Here is a sample of EditConfig just in case you want to cross check:

 

<?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" cq:dialogMode="floating" cq:disableTargeting="{Boolean}true" jcr:primaryType="cq:EditConfig"> <cq:listeners jcr:primaryType="cq:EditListenersConfig" afterdelete="REFRESH_PAGE" afteredit="REFRESH_PAGE" afterinsert="REFRESH_PAGE"/> </jcr:root>

 

 

 

 Let me know your findings..

mahabubali
New Participant
October 13, 2023

Hi @a_h_m_imrul , @aditya_chabuku  Thanks for your response.

I tried this by adding the cq:editConfig. But there is no luck. 

Also there are no JS errors on console. I tried it on fresh simple page. 

Are we need to add any configuration at site level/Page component level?

Could you please advise?

 

-Thanks. 

MMA