Strange rendering of descriptorRadioList

21 views
Skip to first unread message

Kirill

unread,
Sep 4, 2015, 9:03:33 AM9/4/15
to Jenkins Developers
Hi all,

I'm using Jenkins 1.580.3 and test harness of the same version.

In my config.jelly I have the following definition:

<f:block>

    <table>
        <f:descriptorRadioList descriptors="${descriptor.entryDescriptors}" varName="buildStatusUpdateOption"
                               instance="${option}" title="Choose how to update build"/>
    </table>
</f:block>

It renders to

<input name="removeme40_buildStatusUpdateOption" checked="true" type="radio" value="0" class="radio-block-control" id="radio-block-38">

where numbers in name and id update randomly.

I supposed that HtmlForm.getCheckedRadioButton("buildStatusUpdateOption") would be able to find this radio button (as it's coming from some wrapper package from Jenkins, not from original HtmlUnit), but guess what? It doesn't. It wants "removeme40_buildStatusUpdateOption".

Am I doing something wrong? And why is that "removeme40" added to the name?

Regards,
Kirill.
Reply all
Reply to author
Forward
0 new messages