Editconfig listeners of nested components do not fire correctly | Community
Skip to main content
David_Woollard
Level 2
October 16, 2015
Solved

Editconfig listeners of nested components do not fire correctly

  • October 16, 2015
  • 3 replies
  • 1507 views

Summary

Example setup: I have two very simple components, components A and B. Component A contains 3 instances of component B. Component A uses a _cq_template to set some default properties for it and its children when it is dragged onto a parsys.

Issue: When a user drags component A onto a parsys, I expect the cq:listeners in its _cq_editConfig to fire, and they do not. The listeners do fire for the last the instance of component B, but not all of them nor for component A. In addition to that, when I drag component A into a parsys, it does not allow me to edit it (there is no blue border around it when I place my mouse cursor over it). This is also the case for the B components, with the exception of the one who's editConfig listeners fired.

How to reproduce

In order to reproduce this issue, create two simple components as described (one of them must contain instances of the other, and they must use cq:template to set default values). Dragging your component into a parsys will demonstrate the issue as described above.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

http://stackoverflow.com/questions/7260134/extjs-4-event-handling-tutorials

This will point you in the direction on where to learn more about Ext-JS events. This is the library that CQ widgets are based. 

3 replies

Lokesh_Shivalingaiah
Level 10
October 16, 2015

can you put some screenshots with your listeners

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

http://stackoverflow.com/questions/7260134/extjs-4-event-handling-tutorials

This will point you in the direction on where to learn more about Ext-JS events. This is the library that CQ widgets are based. 

David_Woollard
Level 2
October 16, 2015

You mean screenshots of the code?