Cool. I'll try to do it with invokeStatic until I can find a neater way. Thanks very much for your help! Regards.
On Wed, Aug 15, 2012 at 5:05 PM, 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. 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. >
