Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins plugin design with radioblock

All,

I have been trying to figure this UI piece of my jenkins plugin for a few hours now. I am trying to nest checkboxes inside a radioBlock. The problem I am having is that the checkboxes are not hidden when the page loads at first. To hide them I have to highlight the radio then deselect.

<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>   
like image 991
David Richards Avatar asked Dec 03 '25 12:12

David Richards


1 Answers

You need to put all the content you want to hide inside this:

<f:radioBlock checked="false" name="deployMethod" title="Script Deploy" value="Script deploy">
 <f:nested>
 ....
 </f:nested>
</f:radioBlock>
like image 85
Be Cool Avatar answered Dec 06 '25 13:12

Be Cool



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!