내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Using a listeners node on a dialog when authoring in Touch UI

Avatar

Level 4

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?

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 10

listeners works for the node type cq:widget and not for cq:Dialog or any other

원본 게시물의 솔루션 보기

1 답변 개

Avatar

정확한 답변 작성자:
Level 10

listeners works for the node type cq:widget and not for cq:Dialog or any other