Hi AEM community !
I am trying to make the delete or reorder items in a container component.
So I have a Slider component that depends on the Carousel Container component
In order to manipulate the components displayed in the slider, in the atuhoring dialog, I have a children editor.
I can add items correctly, but I can't delete or reorder items (for example, here, I have a slider component with 3 header components, I delete the 3rd one and invert the order of the 2 remaining)
I can see the POST requests fired (and it seems correct to me):
1st request :
- url :
2nd request :
- url :
Views
Replies
Total Likes
Hi @StephanePo1
Content Manipulating using post request is supported OOTB and handled by Sling Post Servlet
Hi @StephanePo1 ,
Common Reasons Why Delete/Reorder Fail:
1. Filtered Resource Path — Wrong POST URL
Ensure that your POST URL correctly maps to the real JCR node without resource types involved.
You posted to:
/content/.../slider
Make sure this node exists physically in CRXDE. If it’s a proxy or sling:resourceType, POST will not work as expected.
2. Node Structure — Children Not Stored Correctly
In your component’s JCR structure, items should be stored under the same node where the POST is sent.
E.g:
/slider
/item_1
/item_2
If they are not under /slider, or managed by a different resource, POST won’t delete or reorder them.
3. Dialog Misconfiguration — childrenEditor Bound Incorrectly
Your dialog must correctly bind to the children resource.
Key config for children editor:
<items jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/authoring/dialog/childreneditor"
name="./items" />
- The name="./items" must match the node where child components are stored.
- Mismatch = POST won't affect anything.
5. Client-Side JS Issue — Dialog Not Saving Changes
If Coral UI dialog JS is broken (custom code, missing events), changes may not serialize to POST correctly.
Check browser dev tools > console for JS errors.
6. Error.log — Sling POST May Log Errors
Check AEM's error.log immediately after POST. Look for:
- AccessDeniedException
- PathNotFoundException
- ResourceNotModifiableException
Regrads,
Amit
Views
Replies
Total Likes
Hey !
Thank you for your response !
The url seems to be correct because when I copy and paste it in the CRX, I can reach the component in my page with its items...
I can add items and they appear correctly in the CRX.
In the point 2, you say "If it’s a proxy or sling:resourceType, POST will not work as expected". In my case, it is a sling:resourceType. Can you explain a bit more about this ?
on point 3, here is the childreneditor part inside my slider config dialog
<items jcr:primaryType="nt:unstructured">
[...]
<containerItems
jcr:primaryType="nt:unstructured"
sling:resourceType="/apps/twilio-foundation/components/content/slider/childreneditor"/>
</items>
is this seems to be correct ?
Also, can you expand a bit more on how I can debug point 4, 5 and 6 ?
Thanks again for your response ! Regards
Stephane
Views
Replies
Total Likes
I have checked permissions, and in my case, I am using the admin account on a local instance of AEM. So in the `/useradmin` console, I can see that it has all permissions on every resources (this is clear)
So, according to me, it is not that
Views
Replies
Total Likes
Views
Likes
Replies