How do Dialogs save data to and read data from the JCR | Community
Skip to main content
Level 6
May 9, 2016
Solved

How do Dialogs save data to and read data from the JCR

  • May 9, 2016
  • 3 replies
  • 1916 views

I have often wondered, how does the dialog save / read data from the JCR, does it use ajax??

Regards

Clive Stewart

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 edubey

Dialogs are basically forms.

When you submit a dialog, data in all the fields will be sent a post request to aem default servlet and from there it will be stored in nodes. This is very similar to the way a web form works, values in all the fields will be sent to the path specified in actions. Now here in place of action, you have the path to current node where data will be saved.

When you open dialog, get request will be made to the current node all properties are fetched and shown on dialog.

You can see those request when you look into browser network tabs

Thanks

3 replies

Level 9
May 9, 2016

Hi,

Not pretty sure, but just a thought.

In one of the posts in the forum it was mentioned that Sightly in turn is converted to java format. So, probably once this conversion happens, data is read/written to the jcr.

Even I am curious to get some further details/insights into its working. May be some of the members can provide their inputs here.

edubey
edubeyAccepted solution
Level 10
May 9, 2016

Dialogs are basically forms.

When you submit a dialog, data in all the fields will be sent a post request to aem default servlet and from there it will be stored in nodes. This is very similar to the way a web form works, values in all the fields will be sent to the path specified in actions. Now here in place of action, you have the path to current node where data will be saved.

When you open dialog, get request will be made to the current node all properties are fetched and shown on dialog.

You can see those request when you look into browser network tabs

Thanks

Level 9
May 10, 2016

Hi Praveen,

Thanks a lot for your inputs here.

In System console there is an entry "Apache Sling GET Servlet". Is that the default AEM servlet you are referring to?