1.

What Is The Listener Property In Aem?

Answer»

The listener property in AEM for a COMPONENT is used to define what happens before or after an action on the component. This is added by USING the “cq:LISTENERS” node with a node type of “cq:EditListenersConfig”. The listener property can also be added to any widget in AEM.

In order to add a listener to that widget you just need to add to add a node that is CALLED “listeners” with a type of “nt:unstructured”. Then you just need to add child nodes to the “listeners” node that are events of that widget. You can FIND a list of events for each widget by searching CQ Widget API documentation.

The listener property in AEM for a component is used to define what happens before or after an action on the component. This is added by using the “cq:listeners” node with a node type of “cq:EditListenersConfig”. The listener property can also be added to any widget in AEM.

In order to add a listener to that widget you just need to add to add a node that is called “listeners” with a type of “nt:unstructured”. Then you just need to add child nodes to the “listeners” node that are events of that widget. You can find a list of events for each widget by searching CQ Widget API documentation.



Discussion

No Comment Found