I have some dialogs that include event listeners, like
<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" jcr:primaryType="cq:Dialog" width="800" xtype="dialog"> <items jcr:primaryType="cq:TabPanel"> <items jcr:primaryType="cq:WidgetCollection"> ... </items> </items> <listeners jcr:primaryType="nt:unstructured" beforeshow="function(thisDialog){console.log(thisDialog);}" beforesubmit="function(thisDialog){console.log(thisDialog);}"/> </jcr:root>
These events do not seem to be firing if I author in TouchUI. However, if I put the listener on, say, a textfield widget instead, those events do fire. Is this expected? Is there a way to use dialog level listeners?