InterviewSolution
Saved Bookmarks
| 1. |
In AEM, what is the listener property? |
|
Answer» In AEM, the listener attribute for a component is used to define what happens before or after a component activity. This is done by using the "CQ:listeners" node with the "cq:EditListenersConfig" node TYPE. Any widget in AEM can have a listener property attached to it. To add a listener to that widget, SIMPLY add a node CALLED "listeners" of the type "NT:unstructured" to the widget. Then all you have to do is add the widget's events as child nodes to the "listeners" node. In the CQ Widget API documentation, you can discover a list of events for each widget. |
|