Shouldn't it be sufficient to use the field attribute?

Instead of your code:

<f:entry title="${%API Read Timeout}" name="jenkinsTimeOut" help="${rootURL}/../plugin/jenkinswalldisplay/help-globalConfig-jenkinsTimeOut.html"> <f:textbox name="jenkinsTimeOut" value="${it.config.jenkinsTimeOut}" default="15" />
</f:entry>

use the following snippet:

<f:entry title="${%API Read Timeout}" field="jenkinsTimeOut" >
             <f:textbox />
</f:entry>

Here an example:
https://github.com/jenkinsci/warnings-plugin/tree/master/src/main/resources/hudson/plugins/warnings/GroovyParser

Ulli

On 08/28/2012 04:26 PM, Gavin Davies wrote:
Update: I got this working, not sure if it's the best way, but perhaps it could help somebody else to see what I did:

https://github.com/gavD/walldisplay-plugin/commit/0e1183141b761b8a5bfdd3ec76b6d189dc95fdc7

Thanks,
- Gav

On 28 August 2012 12:07, Gavin Davies <[email protected] <mailto:[email protected]>> wrote:

    Hi all,

    I'm working on a Jenkins plugin that has configuration on the
    /configure screen (not the job screen but
    http://localhost:8080/configure for example) - how do I add help
    for the fields that appear?

    Other plugins seem to do things like <f:entry title="${%Targets}"
    help="${rootURL}/../plugin/phing/help-targets.html"> and The Git
    plugin makes calls to
    
http://jenkins.ci2.hq.boxuk.net/descriptor/hudson.plugins.git.GitSCM/help/globalConfigName
 but I've
    tried every permutation I can think of but my build and I'm
    tearing my hair out.

    My code is in
    https://github.com/gavD/walldisplay-plugin/tree/restrict-by-last-run-date -
    I would be hugely grateful if anyone could help

    - Gavin




--
no2id.net <http://no2id.net> - fight the database state
avaaz.org <http://avaaz.org> - the world in action - petitions, social justice
newint.org <http://newint.org> - the fight for global justice


Reply via email to