Hi Guyes,
I have a problem. What im trying to do is to have Jenkins render a radio-button group with mutually exclusive options in a Job property. This work fine when the job is getting configured.
But when i reload the page...i get this:
Even though i have not selected the File from workspace option, it still renders the block under the radio button on page load.
Here is my jelly code, what am i doing wrong? I checked that my expressions that evaluate the checked state are correct.
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form">
<f:optionalBlock name="on" checked="${instance.on}" title="DataDog tagging" inline="true">
<f:radioBlock title="Properties content" name="choice" checked="${instance.tagging != null}">
<f:entry title="Properties" field="tagging">
<f:textarea/>
</f:entry>
</f:radioBlock>
<f:radioBlock title="File from workspace" name="choice" checked="${instance.tagFile != null}">
<f:entry title="File" field="tagFile">
<f:textbox/>
</f:entry>
</f:radioBlock>
</f:optionalBlock>
</j:jelly>
Best regards,
Mads