情况:
我们有一个AEM 6.4触摸UI对话框,以及通过此对话框创建的许多现有组件实例。
现在,我们想向对话框添加一个附加的布尔属性(复选框)。
新属性的默认值应为true /选中。
预期结果:
[当编辑器打开现有组件的更新对话框时,我希望该对话框显示新复选框checked,因为这是default,并且JCR不包含现有组件的值。
实际结果:
该对话框显示一个复选框,其中[
已检查
!有什么想法吗?谢谢。
下面.content.xml
文件内的复选框的片段。<newProperty
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
checked="{Boolean}true"
name="./newProperty"
text="The recently added new property"
uncheckedValue="{Boolean}false"
value="{Boolean}true"
/>
'ignoreData = {布尔}真'
然后,您的节点变为
<newProperty
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
checked="{Boolean}true"
name="./newProperty"
text="The recently added new property"
uncheckedValue="{Boolean}false"
value="{Boolean}true"
ignoreData="{Boolean}true"
/>
请告诉我,如果它对您不起作用。