-
Bug
-
Resolution: Invalid
-
Normal
-
None
-
6.0.0
Pre-6.0.0 release (6.0.0-RC2) one could wire a listener using the @Listen("onClick = #id") selector, the #id could be a couple of window levels deep from current controlled window. This no longer works. If the #id belongs to a window then one has to specify 'window #id'.
The following does not work:
public class TestSelectors extends SelectorComposer<Component> {
private static final long serialVersionUID = 533541900848152597L;
@Listen("onClick = #pressMe")
public void doButtonClick()
}
<window apply="TestSelectors">
<window>
<window>
<button id="pressMe" />
</window>
</window
</window>
workaround
If the button is a child of a window:
<window apply="ctrl">
<window>
<button id="pressMe" />
</window
</window>
then you will need to wire it like so:
@Listen("onClick = window #pressMe")