Hi guys,
I'm using AEM 6.2 and I'm looking for a way to send values from my component's dialog to a servlet.
is this a way to submit the data when the author confirms the dialog ?
Can you point me some resource into this ?
Thanks !
Solved! Go to Solution.
Views
Replies
Total Likes
If you want to pass data an author entered into a dialog to an AEM Java backend - why not use HTL and WCMUsePojo.
Yes, but by default AEM will submit the resource to based on form action for that resource node.
But you can add your custom JS code based on event, like submit/success to send data to your servlet.
Adobe Experience Manager Help | Using Event Handlers in Adobe Experience Manager Touch UI Components
Views
Replies
Total Likes
So let me ask to see if i understood correctly.
I can add a listener.js and configure it so when i press confirm on the component's dialog it will send an AJAX post request to my servlet with the values form the component ?
Thanks
Views
Replies
Total Likes
If you want to pass data an author entered into a dialog to an AEM Java backend - why not use HTL and WCMUsePojo.
Yes, but what is your use case?
Views
Replies
Total Likes
Yeah, as an author I want to send the data from cq dialog to a servlet.
Views
Replies
Total Likes
It makes more sense to use Sling Models or WCMUsePojo to get dialog data to Java logic.
Views
Replies
Total Likes
I will check it out. Thank you very much.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies