从的xtype选择类型复选框CQ5选择值 [英] Select value from xtype selection type checkbox CQ5
本文介绍了从的xtype选择类型复选框CQ5选择值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,我运行的问题,现在。我想提出的复选框状态:选中,但我不能让将默认值=值
Hello I am running an issue right now. I would like to make the checkbox state: checked but I could not make the defaultValue="value"
<channels jcr:primaryType="cq:Widget" fieldLabel="Channels"
defaultValue="Value" name="channels" options="/bin/sample/private/getJSON.json"
optionsValueField="Value" type="checkbox" xtype="selection">
我试图做到这一点:获取默认选中的复选框中的CQ5
但它并没有解决这个问题。
but it didn't solve the issue.
推荐答案
试着写这样说。
<channels jcr:primaryType="cq:Widget" fieldLabel="Channels"
defaultValue="{Boolean}true" name="channels" options="/bin/sample/private/getJSON.json"
optionsValueField="Value" type="checkbox" xtype="selection">
这篇关于从的xtype选择类型复选框CQ5选择值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文