Search:

Type: Posts; User: futang; Keyword(s):

Search: Search took 0.02 seconds.

  1. use constructor based DI. ...

    use constructor based DI.

    http://www.springframework.org/docs/reference/beans.html#d0e722



    <bean class="WebSiteObject">
    <constructor-arg index="0">
    <bean ref="webSiteDAO"/>
    ...
  2. Replies
    3
    Views
    1,215

    I now have this working but unfortunately it's a...

    I now have this working but unfortunately it's a purely XWork solution. A surprise I ran in to is that BeanPostProcessors are not inherited from parent contexts. dhewitt, thatnks for the...
  3. Replies
    3
    Views
    1,215

    I'm very interested in this as well. I'm using...

    I'm very interested in this as well. I'm using spring to create actions for webwork/xwork. XWork supports reloading of the config file and it would be great if Spring did too. What I've thought of...
  4. Not sure what was going on, but it works fine in...

    Not sure what was going on, but it works fine in 1.1.1. Thank you for your help.
  5. I just took a look at the CVS HEAD code and this...

    I just took a look at the CVS HEAD code and this is handled very differently. It also looks like it solves this problem. Instead of creating a SingletonTargetSource as a result of setBeanFactory it...
  6. Colin, thank you for all your help with this. It...

    Colin, thank you for all your help with this. It is far more likely you are correct, but here is the process as I understand it (with Spring 1.1). Within createAdvisorChain the following code is...
  7. I think Juergen is misunderstanding where the NPE...

    I think Juergen is misunderstanding where the NPE is occurring. The NPE is not occurring on the getTargetSource().getTargetClass() call, but within getTargetClass for SingletonTargetSource. When...
  8. Colin, thank you for such a thorough reply. I...

    Colin, thank you for such a thorough reply. I successfully worked around my previously problem, but I would like to discuss this issue a bit further.

    I read your bug report and your suggestions...
  9. I'm having some trouble with proxied prototypes. ...

    I'm having some trouble with proxied prototypes. First of all I do have it working correctly. I'm using this for xwork actions and an example of what I have is,



    <bean id="_action"...
  10. Your question would be better sent to the webwork...

    Your question would be better sent to the webwork mailing list but here goes. Visitor allows you to centralize the validation for a single class in a single file. Why would this be useful? Suppose...
  11. Thread: Hivemind?

    by futang
    Replies
    6
    Views
    2,977

    More info

    ndijkstra, in conjunction with the 1.0 release of HiveMind there's a thread going on over at theserverside, http://www.theserverside.com/news/thread.tss?thread_id=28937. Within Both Howard Lewis...
  12. Replies
    7
    Views
    6,025

    Hi Carlos, Let me make sure about your...

    Hi Carlos,

    Let me make sure about your question and then I'll give it a shot. You want to load an object (I'll use your Department/Employees examples), filter it's collections and then return it...
  13. irbouho, Now I'm on the same page with you. ...

    irbouho,

    Now I'm on the same page with you. Just defer you initilization from the constructor of your action form to the setServlet method. As you can see from the code I previously posted, no...
  14. jominor, could you expand on what's happening?...

    jominor,

    could you expand on what's happening? I haven't used this feature and was operating based on the javadoc. After reading your last post I checked the source (CVS HEAD) and it looks like...
  15. irbouho, No I wouldn't suggest it, but the...

    irbouho,

    No I wouldn't suggest it, but the feature is there and it's certainly possible there is some benefit (i.e. this isn't life or death, giving people enough rope to hang themselves is ok...
  16. void setServlet(ActionServlet actionServlet) ...

    void setServlet&#40;ActionServlet actionServlet&#41;

    is called on ActionForms. You should be able to retrive the application context out of that in an identical way you do in the Action class.

    Mike
Results 1 to 16 of 16