Questions tagged [fubumvc]

FubuMVC is an open source Front Controller-style MVC framework designed primarily for Web applications built on ASP.NET.

From FubuMVC.com:

Compositional, compile safe, convention-based configuration for complex web applications. The MVC framework that doesn't get in your way.

48 questions
30
votes
4 answers

What are the main differences between ASP.NET MVC and FubuMVC?

A developer I know just showed me FubuMVC and there was some question whether or not we should attempt to use it on a real live project or not. The current design choice so far has been ASP.NET MVC. What I'm interested in finding out is: What are…
maz
  • 2,466
  • 1
  • 25
  • 32
8
votes
3 answers

Thunderdome MVC- Why one-model-in in MVC?

When Jeremy & Chad posted about their FubuMvc project, one of the differentiators they mentioned was their "Thunderdome Principal": The “Thunderdome Principle” – All Controller methods take in one ViewModel object (or zero objects in some…
Troy
  • 1,640
  • 10
  • 16
5
votes
1 answer

fubumvc - rendering a collection as a drop down list

I'm having trouble understanding how to render a collection as a drop down list. If I have a model like: public class AccountViewModel { public string[] Country { get; set; } } I would like the string collection to render as a…
stantona
  • 3,260
  • 2
  • 24
  • 28
4
votes
4 answers

Using Funcs instead of instances in frameworks

When looking at the source code of a couple of projects I found a pattern I can not quite understand. For instance in FubuMVC and Common Service Locator a Func is used when a static provider is changed. Can anyone explain what the benefit is of…
Ruben
  • 6,367
  • 1
  • 24
  • 35
4
votes
5 answers

The Web server is configured to not list the contents of this directory

Using Visual Studio 2012: I created an "ASP.NET Empty Web Application" (using C#). I used NuGet to install the FubuMVC package. When I run the application (using IIS Express), I get the "Welcome to FubuMVC!" page which tells me to delete the…
Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380
3
votes
1 answer

Entity Framework Detached Object Merging

I have a scenario where I am using Entity Framework in a WCF service, and changes happen on a non-tracked instance of a type that is mapped back to the database via code-first (non-trivial updates and deletes throughout the instance's object tree). …
3
votes
2 answers

thunderdome action invoker asp.net mvc

I know basic idea of thunderdome principle (one object enters, one object leaves) but I didn't see any real world example of it in asp.net mvc. Is it good example of thunderdome principle public ActionResult Index(Employee employee) { …
T W
  • 6,267
  • 2
  • 26
  • 33
3
votes
2 answers

Tweaking asp.net mvc

I really love the "one model in - one model out" idea of Fubu MVC. A controller would look something like this public class MyController { public OutputModel MyAction(InputModel inputModel) { //.. } } and…
BjartN
  • 5,327
  • 6
  • 28
  • 32
3
votes
1 answer

How to set up FubuMVC validation

I'm trying to learn FubuMVC and have gotten stuck on validating my input models. What I want to accomplish is post-validate-redirect. That is, to redirect to same view and show the errors if the model is invalid. I'm using attributes on my…
Henning
  • 655
  • 1
  • 6
  • 8
3
votes
1 answer

How do I create an exception-wrapping fubumvc behaviour?

How can I create a fubumvc behaviour that wraps actions with a particular return type, and if an exception occurs while executing the action, then the behaviour logs the exception and populates some fields on the return object? I have tried the…
Jon M
  • 11,669
  • 3
  • 41
  • 47
3
votes
2 answers

Extract Distinct restful MVC routes from IIS logs

My shop is using MVC3/FUBU on IIS 7. I recently put something into production and I wanted to gather metrics from the IIS logs using log parser. I've done this many times before but because the MVC3 routes are of the form /api/person//address/ the…
Grummle
  • 1,364
  • 1
  • 12
  • 21
2
votes
2 answers

How do I configure Fubu for a view without a controller?

I have an Index action on a controller that's not doing anything. public EmptyModel Index() { return null; } The Index view simply displays some html, with jQuery-driven ajax and the MasterPage doing all the heavy lifting on this particular…
Mark Rogers
  • 96,497
  • 18
  • 85
  • 138
2
votes
1 answer

What is the proper way to register a display model and FubuControl?

Recently, I've begun updating a FubuMVC project from a pre-May/June 2010 version of the FubuMVC framework to the most recent version. One of the biggest stumbling blocks I'm running into is how to configure FubuControls and the display models they…
Mark Rogers
  • 96,497
  • 18
  • 85
  • 138
2
votes
0 answers

How to run a Silverlight xap with fubumvc

Probably the answer is simple and maybe someone wants to hit me, but obviously I'm stuck right now. I want to integrate a Silverlight XAP into a fubumvc view page. I am using the HelloWorld sample and enter the following into the page.
user333896
  • 33
  • 2
2
votes
1 answer

Why is FubuMVC new()ing up my view model in PartialForEach?

I'm getting started with FubuMVC and I have a simple Customer -> Order relationship I'm trying to display using nested partials. My domain objects are as follows: public class Customer { private readonly IList orders = new…
Jon M
  • 11,669
  • 3
  • 41
  • 47
1
2 3 4