MVC sooner rather than later...

MVC sooner rather than later...

Old forum URL: forums.lhotka.net/forums/t/5120.aspx


vdhant posted on Friday, July 18, 2008

Hi Rocky
From looking at your road map, it seems like its going to be quite a while before we see anything from you in the MVC and CSLA space. I realise that you have a lot of other publications on your plate but it would be great if you could move this forward. Otherwise maybe if you could blog a bit about your thoughts on MVC and how CSLA fits in and what additional support CSLA could play.
Cheers
Anthony

nermin replied on Friday, July 18, 2008

It is my plan to build an MVC version of the Project Tracker sometimes in August. I will try to coordinate with Rocky on that. SO do not worry we will have something in about a month - which is lot earlier than the official release date of the MVC :)

I am currently waiting for CTP 4 to be released, and have busy schedule this month, but we will have something soon

Nermin Dibek

________________________________

From: vdhant [mailto:cslanet@lhotka.net]
Sent: Fri 7/18/2008 7:11 AM
To: Nermin Dibek
Subject: [CSLA .NET] MVC sooner rather than later...


Hi Rocky
From looking at your road map, it seems like its going to be quite a while before we see anything from you in the MVC and CSLA space. I realise that you have a lot of other publications on your plate but it would be great if you could move this forward. Otherwise maybe if you could blog a bit about your thoughts on MVC and how CSLA fits in and what additional support CSLA could play.
Cheers
Anthony


vdhant replied on Friday, July 18, 2008

Sounds great and i can't wait...

Can i make a request though, could you and rocky maybe blog about it as your going. Like things you run into (good or bad), the direction that you are thinking of going in, what type of framework support is going to supplied (or thinking about supplying), etc, etc.

If you could that would be great.
Cheers
Anthony

vdhant replied on Thursday, August 21, 2008

Hey guys.
Just wondering if anything is happening in this space...
Cheers
Anthony

dg78 replied on Thursday, August 21, 2008

Hi,

 

Today, I found a great website about MVC and MVP : http://www.mvcsharp.org/Default.aspx

 

Oleg Zhukov did a good work : many tutorials, code and a framework with windows form, web forms and silverlight.

I think if his framework is used with CSLA, it will be wonderful.

 

I suggest you to go on his website and read his blog : http://www.olegzhukov.com/content/Blog/tabid/54/Default.aspx

 

Dominique

vdhant replied on Thursday, August 21, 2008

Humm this is kinda what I was after... I was more after what nermin was talking about with the project tracker example.

It is my plan to build an MVC version of the Project Tracker sometimes in August. I will try to coordinate with Rocky on that. SO do not worry we will have something in about a month - which is lot earlier than the official release date of the MVC :)

I am currently waiting for CTP 4 to be released, and have busy schedule this month, but we will have something soon

nermin replied on Thursday, August 21, 2008

I have started working on ASP.NET MVC example, but only week ago.  We are really busy with Csla Light (3.6).

 

I am thinking actually of building 2 MVC examples:

1)      Using ExtJs as an ajax library

2)      Using Jquery as an ajax library

 

JQuery will be more like standard MVC Site implementation , where ExtJs being a library that allows us to implement more sort of a Windows like UI using JSON for serializing data back and forth might be more in the spirit of ProjectTracker and the Csla itself.  The problem with the ExtJs is that it heavily depends on the JSon for everything.

 

Check out these examples of ExtJs, and let me know what you think:

Desktop example:

-          http://extjs.com/deploy/dev/examples/desktop/desktop.html

API Reference:

-          http://extjs.com/deploy/dev/docs/

 

If you have any comments please let me know.  There are couple of problems I need to solve to have a real MVC example with testability in mind, like taking the factory out of DataPortal, and that is where Rocky’s mobile factory helps – but we are not there yet.

 

I will start blogging about my progress and will be posting ideas to this newsgroup.  Hopefully I will have a sample site for you to look at and start commenting on within few weeks.

 

Nermin

From: vdhant [mailto:cslanet@lhotka.net]
Sent: Thursday, August 21, 2008 5:31 PM
To: Nermin Dibek
Subject: Re: [CSLA .NET] RE: MVC sooner rather than later...

 

Humm this is kinda what I was after... I was more after what nermin was talking about with the project tracker example.

It is my plan to build an MVC version of the Project Tracker sometimes in August. I will try to coordinate with Rocky on that. SO do not worry we will have something in about a month - which is lot earlier than the official release date of the MVC :)

I am currently waiting for CTP 4 to be released, and have busy schedule this month, but we will have something soon



vdhant replied on Friday, August 22, 2008

Hi Nermin
In a word I can't wait... What you have mentioned and the couple of examples you surrgested sounds great. And i think looking at the testing and AJAX aspects is a good idea.

I think its good that you have chosen these two but it would have been nice if you had done an example with ASP.Net AJAX as well... maybe you could provide small samples of how you would go about using it if you can't do a full sample... just an idea.

I would encourage you to focus on the testing aspects that you mentioned. For me this is one of the biggest challenges I find with CSLA. So having some real examples of how you can go about doing this from start to finish would be extremely valuable. With this, it may be a good idea to include some of the techniques used in the deepdata example. The reason for this is from what I can see this is one of the better ways of being able to conduct tests and as services become more widely used having the tests go to this level would be well worth while.

One thing that I would be keen to see is how you go about using the MVC model with master pages. The reason why i mention this in particular is that it seems to be the weakest point in Microsoft’s MVC implementation. MVC says that all data required should be passed to the view, but so far when master pages are introduced, you have the controller calling the view calling the controller and passing the data back the view. I know there is an action filter option but I really don’t like this because it seems a little limiting in terms of dynamically changing master pages, etc, etc. I don’t think this is a new problem (see http://weblogs.asp.net/stephenwalther/archive/2008/08/12/asp-net-mvc-tip-31-passing-data-to-master-pages-and-user-controls.aspx) but there were a few different options suggested here http://forums.asp.net/t/1293325.aspx (you might need to read through it a bit) but ultimately the solution may be more a framework one. In any case it will be interesting to see how you do this.

Anyway, I better leave it there. The only thing I would encourage is to keep us up to date and show us anything you have sooner rather than later ;)

Cheers
Anthony

nermin replied on Friday, August 22, 2008

To answer your questions:

ASP.NET AJAX was built for web forms to support their “callback” model.  Personally I do not consider it a “True AJAX” as you are not getting the full advantages of AJAX (rendering partials, instead of callback going through a full page lifecycle, sending everything to the client and then ASP.NET Ajax having to decipher which parts to render).

 

Besides ASP.NET Ajax is real messy.  I find Jquery/Prototype/ExtJs syntax a lot simpler, easier to learn and lot easier to extend.  They have built an object model that can be easily extended – yes OO Javascript, for your UI.

 

As far as dynamically changing master pages, controllers View() method by default accepts View Name as a parameter of which View/Page to render.  But there are overloads that besides View Name accept a Master Page Name, allowing you to specify which Master Page to use when rendering a view.

 

 

As far as an example using DeepData techniques – I am planning on having something similar.  MVC is going to implement a Repository Pattern, and use Linq DTOs, similar to what one can see in Rob Connery’s MVC storefront example:

 

http://blog.wekeroad.com/mvc-storefront/asp-net-mvc-mvc-storefront-part-2/

 

Nermin

 

From: vdhant [mailto:cslanet@lhotka.net]
Sent: Friday, August 22, 2008 7:08 AM
To: Nermin Dibek
Subject: Re: [CSLA .NET] RE: RE: MVC sooner rather than later...

 

Hi Nermin
In a word I can't wait... What you have mentioned and the couple of examples you surrgested sounds great. And i think looking at the testing and AJAX aspects is a good idea.

I think its good that you have chosen these two but it would have been nice if you had done an example with ASP.Net AJAX as well... maybe you could provide small samples of how you would go about using it if you can't do a full sample... just an idea.

I would encourage you to focus on the testing aspects that you mentioned. For me this is one of the biggest challenges I find with CSLA. So having some real examples of how you can go about doing this from start to finish would be extremely valuable. With this, it may be a good idea to include some of the techniques used in the deepdata example. The reason for this is from what I can see this is one of the better ways of being able to conduct tests and as services become more widely used having the tests go to this level would be well worth while.

One thing that I would be keen to see is how you go about using the MVC model with master pages. The reason why i mention this in particular is that it seems to be the weakest point in Microsoft???s MVC implementation. MVC says that all data required should be passed to the view, but so far when master pages are introduced, you have the controller calling the view calling the controller and passing the data back the view. I know there is an action filter option but I really don???t like this because it seems a little limiting in terms of dynamically changing master pages, etc, etc. I don???t think this is a new problem (see http://weblogs.asp.net/stephenwalther/archive/2008/08/12/asp-net-mvc-tip-31-passing-data-to-master-pages-and-user-controls.aspx) but there were a few different options suggested here http://forums.asp.net/t/1293325.aspx (you might need to read through it a bit) but ultimately the solution may be more a framework one. In any case it will be interesting to see how you do this.

Anyway, I better leave it there. The only thing I would encourage is to keep us up to date and show us anything you have sooner rather than later ;)

Cheers
Anthony



vdhant replied on Wednesday, September 03, 2008

Hey Nermin
Sounds great. Just wondering, have you had a chance to start working on this yet?? I would love to see stuff as it becomes available.

In terms of the AJAX stuff, I think using JQuery and ExtJs is a great idea and a good way to go. I personally haven’t had much experience with either but from what I have seen thus far, the approach that they bring to the table seems better the asp.net ajax. For a long time I have felt the same was as you have about asp.net ajax and how 'heavy' it is but until asp.net mvc utilising these sorts of toolkits hasn't been easy (i.e. due to things like id's of controls, etc - although these aren’t show stoppers they make things more difficult). Having said this, I am going to have a fun time trying to convince clients to go JQuery (or something similar) for new projects over asp.net ajax - might have to see if I can refine my argument to convince them ;)

In terms of the master pages if you have a look at this post you will see what I am getting on about: http://forums.asp.net/p/1309375/2576549.aspx.

I know everything with CSLA seems to be going with Linq to SQL, but would it be possible to have a least 1 example that uses plan ado.net. I know that I could put this in fairly simply, but I am interested in seeing how you go about faking out the database components in testing for other things besides Linq.

Also I was wondering if you where going to use a BDD style of approach to your tests and I was just wondering what mocking and unit test frameworks you are planning to use.

Cheers
Anthony

nermin replied on Thursday, September 11, 2008

Just wanted to let everyone know that we have some very basic example of the Csla +MVC + ExtJs.  This is the first step towards the MVC ProjectTracker, and it was used by me to explore couple of architectural decisions I needed to make in order to put MVC, Csla, and TDD together.

 

I have published the first 3 posts that are the portion of the 6-8 post series that should explain the architecture, implementation, unit testing in this demo implementation.  The links for the initial posts are:

 

http://nermins.net/post/2008/09/Implementing-MVC-site-using-CSLA-and-ExtJs-–-Part-1---Introduction.aspx

http://nermins.net/post/2008/09/Implementing-MVC-SIte-using-Csla-and-ExtJs---Part-2---Solution-Structure.aspx

http://nermins.net/post/2008/09/Implementing-MVC-Site-using-Csla-and-ExtJs---Part-3---UI,-ExtJs-Customer-DropDown-List.aspx

 

Anyone interested, please copy and paste them in your browser’s url, and check it out.  Keep in mind that we are still missing few more posts on the topic, but let me know if you feel that we are going in the right direction so far.

 

Nermin

From: vdhant [mailto:cslanet@lhotka.net]
Sent: Friday, August 22, 2008 7:08 AM
To: Nermin Dibek
Subject: Re: [CSLA .NET] RE: RE: MVC sooner rather than later...

 

Hi Nermin
In a word I can't wait... What you have mentioned and the couple of examples you surrgested sounds great. And i think looking at the testing and AJAX aspects is a good idea.

I think its good that you have chosen these two but it would have been nice if you had done an example with ASP.Net AJAX as well... maybe you could provide small samples of how you would go about using it if you can't do a full sample... just an idea.

I would encourage you to focus on the testing aspects that you mentioned. For me this is one of the biggest challenges I find with CSLA. So having some real examples of how you can go about doing this from start to finish would be extremely valuable. With this, it may be a good idea to include some of the techniques used in the deepdata example. The reason for this is from what I can see this is one of the better ways of being able to conduct tests and as services become more widely used having the tests go to this level would be well worth while.

One thing that I would be keen to see is how you go about using the MVC model with master pages. The reason why i mention this in particular is that it seems to be the weakest point in Microsoft???s MVC implementation. MVC says that all data required should be passed to the view, but so far when master pages are introduced, you have the controller calling the view calling the controller and passing the data back the view. I know there is an action filter option but I really don???t like this because it seems a little limiting in terms of dynamically changing master pages, etc, etc. I don???t think this is a new problem (see http://weblogs.asp.net/stephenwalther/archive/2008/08/12/asp-net-mvc-tip-31-passing-data-to-master-pages-and-user-controls.aspx) but there were a few different options suggested here http://forums.asp.net/t/1293325.aspx (you might need to read through it a bit) but ultimately the solution may be more a framework one. In any case it will be interesting to see how you do this.

Anyway, I better leave it there. The only thing I would encourage is to keep us up to date and show us anything you have sooner rather than later ;)

Cheers
Anthony



ozitraveller replied on Sunday, September 14, 2008

Hi

Could some please clarify whether the PTracker winforms project will be updated to MVC as well? There doesn't seem to be any mention of it here.

 

Cheers

Copyright (c) Marimer LLC