On 15 August 2012 21:05, Jesse Glick <[email protected]> wrote:

> On 08/15/2012 03:52 PM, Nicky Ramone wrote:
>
>> it=hudson.model.**FreeStyleProject@3d2a58[**dummy2]
>>
>>
>> I'm kinda lost. I thought 'it' was supposed to be an instance of
>> MyCustomNotifier.
>>
>
> If you are on the configure screen for a project, then 'it' would be the
> project.


${instance} should be the instance of your notifier or null if not
reconfiguring
${descriptor} should be the descriptor of your notifier, so just stick the
getter in the DescriptorImpl and you should be fine, no need for
j:invokeStatic


> In general there _is_ no MyCustomNotifier instance yet when the
> configuration screen is loaded - the user might be configuring your
> notifier for the first time on this web page! (In which case
> MyCustomNotifier is instantiated for the first time after they click Save.)
> Confusing if you are used to Swing GUIs and the like, but makes sense in
> the context of a web app.
>
> <j:invokeStatic .../> can be used to load the Permission as a static field
> from MyCustomNotifier.class.
>

Reply via email to