Re: Help with the @Inject Annotation

2007-09-18 Thread Chris Pratt
I think I just stumbled on the answer while slogging through the code, You have to call: Dispatcher.getInstance().getContainer().inject(this); somewhere early on. I'm putting it in doStartTag (Where the ComponentTagSupport class has it) and I'm testing now. (*Chris*) On 9/18/07, Ian Roughley

Re: Help with the @Inject Annotation

2007-09-18 Thread Ian Roughley
I'm not sure that tag libraries are created by the object factory, if this is the case, then the behaviour you are observing is correct (as the annotations aren't checked and thus values not injected). You should be able to track back the object creation in the code to confirm this. /Ian Ch

Help with the @Inject Annotation

2007-09-17 Thread Chris Pratt
I'm attempting to understand the @Inject Annotation and how it can be used. I'm trying to create a tag library that needs to look up action data, so following the pattern from the FormTag I added this methods to my tag class: private boolean enableDynamicMethodInvocation = true; private Confi