Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: spring.net + asp.net mvc integration

  1. #1
    Join Date
    Feb 2007
    Location
    frankfurt, germany
    Posts
    52

    Default spring.net + asp.net mvc integration

    Hello,

    on the spring.net page you can find a link to a sample
    asp.net mvc + spring.net integration project provided
    by Billy McCafferty. Unfortunately the author decided
    to use Ninject in the future, so his spring.net- integration
    is “out of the date” at the moment.

    I looked in his last spring-related release and found a code,
    where CustomActionInvoker inherits ControllerActionInvoker
    (found in the ProjectBase.Web project).

    Firstly, constructor must be changed because ControllerActionInvoker
    was altered in the mvc. It’s not clear to me, how ControllerContext context
    could be passed in ASP:NET MVC Beta.

    Could anyone suggest how to fix that issue?
    Is anyone interested in it like me?

    Cheers,
    Boris

  2. #2
    Join Date
    Apr 2008
    Posts
    17

    Thumbs up

    Yes I'm interested:

    http://forum.springframework.net/sho...?t=4767&page=5 :-D

    Quote Originally Posted by Erich Eichinger View Post
    Hi,
    sorry for the delay. I just returned from my vacation and will continue working on our MVC integration this month. A quick note: To make AOP work with P4, you need to remove the custom SpringAopControllerActionInvoker. The implementation of ControllerActionInvoker changed with P4, making the custom invoker implementation unnecessary.

    cheers,
    Erich

  3. #3
    Join Date
    Feb 2008
    Location
    Israel
    Posts
    2

    Default ASP.NET MVC Beta and SpringInteropController class

    Hi,


    I've implemented the following changes in order to make the SpringInteropController class work with ASP.NET MVC Beta:
    1. You should now override the ExecuteCore method instead of Execute this way:

    protected override void ExecuteCore() {
    ActionInvoker = new CustomActionInvoker();
    base.ExecuteCore();
    }
    2. You don't need the following code anymore:
    public CustomActionInvoker(ControllerContext context)
    : base(context) {
    }
    3. Don't forget to change the refernece to the latest MVCContrib version. You may grab it from the official MVCContrib site on CodePlex.

    Hope this helps.

    Geyzerskiy Dmitriy

  4. #4
    Join Date
    Feb 2007
    Location
    frankfurt, germany
    Posts
    52

    Default it’s planned to integrate MVC in Spring.NET ?

    Cool,
    Thanks a lot for your help, Dmitriy!

    What I’m curious about: Erich Eichinger mentioned [
    http://forum.springframework.net/sho...?t=4767&page=5 ] :
    “The implementation of ControllerActionInvoker changed with P4, making the custom invoker implementation unnecessary”

    There are some open issues in S#arp Architecture project [
    http://www.codeplex.com/SharpArchite...orkItemId=4964
    http://www.codeplex.com/SharpArchite...orkItemId=5588
    ] , so it would be great, if Erich or Mark could say, if it’s planned to integrate MVC in Spring.NET in the next future.

    I grabbed in jira and found
    the following entry:
    http://jira.springframework.org/browse/SPRNET-810
    So folks, you could also vote if you need it.

    Cheers,
    Boris

  5. #5
    Join Date
    Apr 2008
    Posts
    86

    Default

    We've just written our own controller factory that uses spring - works fine.

    Then again we wrote our own composite view engine from scratch so I'm not sure it'll work with the winforms view engine.

  6. #6
    Mark Pollack is offline Spring.NET Co-Lead Spring TeamSpring User
    Join Date
    Sep 2004
    Location
    New York, NY
    Posts
    1,683

    Default

    Hi,

    Essentially we are waiting until the ASP.NET MVC 'RTM'/Final since we've already done some enhancements to ASP.NET MVC that have partially been addressed in the latest beta. A Spring.NET 2.0 M1 release will follow shortly after the official microsoft release. Thanks for you patience, I know it is hard to wait this long.

    Mark

  7. #7
    Join Date
    Feb 2007
    Location
    frankfurt, germany
    Posts
    52

    Default ASP.NET MVC RC1 release is there

    Hi,
    there is the ASP.NET MVC RC1 release on the microsoft.com site
    (http://go.microsoft.com/fwlink/?Link...68&clcid=0x409).
    As I can see, there is not many changes since Beta. So I'm wondering if the spring team considering working on this topic now.

  8. #8
    Join Date
    Jan 2006
    Location
    Cambridge, UK
    Posts
    1,340

    Default

    Hi,

    Time is a beast :-(, sorry for the delay. I already have a prototype on my harddisk and will publish an initial version by mid-march. Any helping hand is welcome then!

    cheers,
    Erich

  9. #9
    Join Date
    Apr 2008
    Posts
    17

    Wink

    Quote Originally Posted by Erich Eichinger View Post
    Any helping hand is welcome then!
    I'm warming my fingers up

  10. #10
    Join Date
    Jan 2006
    Location
    Cambridge, UK
    Posts
    1,340

    Default

    Hi,

    Great!!!!!!! Plz grab an account on xp-dev.com and send me your accountname. I will give you commit rights then.

    I'm on vacation this weekend but will come back to you next week then.

    -Erich

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •