<f:checkbox /> does not have help

37 views
Skip to first unread message

tzach solomon

unread,
Nov 14, 2023, 3:20:32 AM11/14/23
to jenkin...@googlegroups.com
Hi,

If I'm not mistaken, there is no help working for jelly form checkbox entry.
Is there  a way to have help displayed for a checkbox?

Thanks,
Tzach

Ullrich Hafner

unread,
Nov 14, 2023, 3:44:40 AM11/14/23
to JenkinsCI Developers
A checkbox has a help as well. Maybe your Java field name does not match? E.g. in my plugin I have a help-file help-ignoreFailedBuilds.html that is mapped to the checkbox ignoreFailedBuilds with a getter getIgnoreFailedBuilds and setIgnoreFailedBuilds.

Bildschirmfoto 2023-11-14 um 09.40.33.png

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAC19wgL95_VxCBrrpnUwRZUo4TTYpHq%2BFyM1PQYbstt6B4NVxQ%40mail.gmail.com.

tzach solomon

unread,
Nov 14, 2023, 4:27:07 AM11/14/23
to jenkin...@googlegroups.com
Thanks Ullrich,

Yes, I have those but still it doesn't work.
My jenkins version is: 2.303.3

From what I can see, checkbox.jelly has the following
<st:attribute name="field">
Used for databinding. TBD.
</st:attribute>
I've also overridden the getHelpFile() method in my descriptor to see which fieldName are passed and I do see all other fields besides the checkbox.
Is there a way to troubleshoot this?



Ullrich Hafner

unread,
Nov 14, 2023, 5:50:11 AM11/14/23
to JenkinsCI Developers
Is your source code public? I never needed to override getHelpFile(). 



Am 14.11.2023 um 10:26 schrieb tzach solomon <tzach....@gmail.com>:

Thanks Ullrich,

Yes, I have those but still it doesn't work.
My jenkins version is: 2.303.3

From what I can see, checkbox.jelly has the following
<st:attribute name="field">
Used for databinding. TBD.
</st:attribute>
I've also overridden the getHelpFile() method in my descriptor to see which fieldName are passed and I do see all other fields besides the checkbox.
Is there a way to troubleshoot this?



On Tue, Nov 14, 2023 at 10:44 AM Ullrich Hafner <ullrich...@gmail.com> wrote:
A checkbox has a help as well. Maybe your Java field name does not match? E.g. in my plugin I have a help-file help-ignoreFailedBuilds.html that is mapped to the checkbox ignoreFailedBuilds with a getter getIgnoreFailedBuilds and setIgnoreFailedBuilds.

<Bildschirmfoto 2023-11-14 um 09.40.33.png>

Am 14.11.2023 um 09:20 schrieb tzach solomon <tzach....@gmail.com>:

Hi,

If I'm not mistaken, there is no help working for jelly form checkbox entry.
Is there  a way to have help displayed for a checkbox?

Thanks,
Tzach

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAC19wgL95_VxCBrrpnUwRZUo4TTYpHq%2BFyM1PQYbstt6B4NVxQ%40mail.gmail.com.


--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/47445CF5-7E60-4228-8AEC-46175AE2FAD6%40gmail.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.

tzach solomon

unread,
Nov 14, 2023, 7:10:48 AM11/14/23
to jenkin...@googlegroups.com
No, my code is private :( 
Is your code public?

Daniel Beck

unread,
Nov 14, 2023, 7:17:10 AM11/14/23
to jenkin...@googlegroups.com
On Tue, Nov 14, 2023 at 10:27 AM tzach solomon <tzach....@gmail.com> wrote:
From what I can see, checkbox.jelly has the following
<st:attribute name="field">
Used for databinding. TBD.
</st:attribute>
I've also overridden the getHelpFile() method in my descriptor to see which fieldName are passed and I do see all other fields besides the checkbox.
Is there a way to troubleshoot this?

Is the f:checkbox wrapped in an f:entry? 

tzach solomon

unread,
Nov 14, 2023, 7:49:31 AM11/14/23
to jenkin...@googlegroups.com
That's it! 
Thanks Daniel! :) 

Thanks Ulrich also for trying :) 

Tzach

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages