1 person found this helpful
1 the handler is a sling event handler (server side)
2 the beforeinsert stuff is about Ext-JS event (client side)
so there is now way 1 catch 2.
what are you trying to do?
Thanks for your quick answer.
> the beforeinsert stuff is about Ext-JS event (client side)
I have not been aware of that, thanks a lot.
My use case is that I have to add a specific parent node to the node I'm about to insert.
Just out of curiosity:
How does the system propagate events like page refresh to server side event handlers registered for
.EVENT_TOPIC = "com/day/cq/wcm/core/page"?
<?xml version="1.0" encoding="UTF-8"?>
Don't understand "I have to add a specific parent node to the node I'm about to insert." you should have a parent to insert a node at first, right?
Anyway, you could post the parent, and then the child (or both at the same time) using SlingPostServlet
as in my previous answer, the first one never hear about the second one...(1=server, 2=js) 1:is for server side handlers, 2 is a client side handler (the REFRESH_PAGE action is done after the ExtJS event aftercreate is fired)