What piece of code is executed when the aem dialog is submitted? | Community
Skip to main content
Level 3
June 8, 2022
Solved

What piece of code is executed when the aem dialog is submitted?

  • June 8, 2022
  • 2 replies
  • 756 views

Whenever we submit or cancel a dialog for any particular component what piece of code exactly works there. Any sources from where I can get a complete understanding about this.

According to my understanding it comes  from "/libs/cq/gui/components/authoring/dialog/clientlibs/dialog/js".

Is it correct? 

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 SantoshSai

Hi @manasi29 


I believe this is the JSP responsible to process further 

/libs/cq/gui/components/authoring/dialog/dialog.jsp

However, I couldn't found any documentation which explains the flow, but you can try understanding by debugging using developer tool. 

Regards,
Santosh

2 replies

SantoshSai
Community Advisor
SantoshSaiCommunity AdvisorAccepted solution
Community Advisor
June 8, 2022

Hi @manasi29 


I believe this is the JSP responsible to process further 

/libs/cq/gui/components/authoring/dialog/dialog.jsp

However, I couldn't found any documentation which explains the flow, but you can try understanding by debugging using developer tool. 

Regards,
Santosh

Santosh Sai
Fanindra_Surat
Community Advisor
Community Advisor
June 9, 2022

Hi @manasi29 -

When you submit a dialog, the properties entered into the dialog will be saved to that particular component using a POST call to the specific component path on the page. You can observe this in the Network tab of your browser Dev tools.

Additionally, all clientlibs that have been marked with the category 'cq.authoring.dialog' and the custom clientlibs included as 'extraClientLibs' on your dialog get executed.