0
我想在CQ5中的對話參與者步驟中獲取有效載荷,這個步驟位於我的小部件監聽器下。在我的對話框的下面。在對話參與者中獲取有效載荷步驟
<?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" title="Changetemplate" xtype="dialog">
<items jcr:primaryType="cq:WidgetCollection">
<Template jcr:primaryType="cq:Panel">
<items jcr:primaryType="cq:WidgetCollection">
<Path jcr:primaryType="cq:Widget" fieldLabel="Select Template" id="mytemplate" name="./jcr:content/templatepath" xtype="textfield">
<listeners jcr:primaryType="nt:unstructured" afterrender="function(component){ var dialog = CQ.wcm.showTemplate('/content/geometrixx/en'); dialog.show(); }" />
</Path>
</items>
</Template>
</items>
</jcr:root>
感謝