所有
我一直在努力想象我的jenkins插件的这个UI片段几个小时了。我试图在radioBlock中嵌入复选框。我遇到的问题是,当页面首先加载时,复选框不会被隐藏。要隐藏它们,我必须突出显示无线电然后取消选择。
<f:section title="Deployment method">
<f:radioBlock checked="true" name="deployMethod" title="Deploy new servers" value="Deploy new Servers"/>
<f:radioBlock checked="false" name="deployMethod" title="Script Deploy" value="Script deploy">
<j:forEach var="script" items="${account.scripts}">
<f:entry>
<f:checkbox name="Scripts" value="${script.scriptName}" title="${script.scriptName}"/>
</f:entry>
</j:forEach>
</f:radioBlock>
</f:section>
&#13;
答案 0 :(得分:1)
您需要将要隐藏的所有内容放在此内容中:
<f:radioBlock checked="false" name="deployMethod" title="Script Deploy" value="Script deploy">
<f:nested>
....
</f:nested>
</f:radioBlock>