mvc

mvc question, interactive objects

i want to make a 'calendar object' which generates three different style calendars to display, they'll all use the same data. should i do the logic for the calendar style in the view, or should i do that in the controller and then call it from the view? ...

SportsStore: MVC programming issue [Castle WindsorControllerFactory]

Hey all! So I've been following Steven Sanderson's book called Pro ASP.NET MVC Framework, and I'm running into an exception: No parameterless constructor defined for this object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the err...

Reset the asp.net mvc routes without resetting the app

Hi, I want to stroe my routes in DB and register them in Application_Start of Global.asax.cs. Everything is fine but any change in the DB, I have to reset the app in order to let app to pick up my changes. If i can reset the routes without restart the app, the problem will be solved. How would I achive it geeks? A custom httpmodule? o...

How can I pass objects from one controller to another in rails?

I have been trying to get my head around render_to but I haven't had much success. Essentially I have controller methods: def first #I want to get the value of VAR1 here end def second VAR1 = ["Hello", "Goodbye"] render_to ?? end What I can't figure out is how to accomplish that. Originally I just wanted to render the first.ht...

Django MVC pattern for non database driven models?

I'm just working my way through Django, and really liking it so far, but I have an issue and I'm not sure what the typical way to solve it. Suppose I have a View which is supposed to be updated when some complex Python object is updated, but this object is not driven by the database, say it is driven by AJAX calls or directly by the use...

Confused by Django's claim to MVC, what is it exactly?

So what exactly is Django implementing? Seems like there are Models Views Templates Models = Database mappings Views = Grab relevant data from the models and formats it via templates Templates = Display HTML depending on data given by Views EDIT: S. Lott cleared a lot up with this in an edit to a previous post, but I...

iPhone dev - help with using Model

(By the way, I don't use Interface Builder) I have a little project consisting of a root UIViewController which manages 5 other View Controllers with a UITabBar, I'm not using UITabBarController. The Root View Controller only ever keeps one of its View Controllers instantiated, when a tab bar item is selected, the View Controller ...

Should I access POST-Parameters in the model or pass as method arguments from controller?

I have to process about 20 POST-parameters, and I am not sure where to do that. I could define each as an argument of the method on the model, and pass them from the controller when the method is called. This would result in quite a bit of work and make the function call less readable, due to the number of arguments. Or I could call th...

moving from C# web to MVC App, problem with inheritance

hi there i usually create asp.net websites and have a few classes i use, mainly a baseclass normally i would change public partial class _default : Page to public partial class _default : BaseClass with a using at the top of the namespace name however i dont seem to be able to do this in MVC, how do i get my baseclass or any other...

subsonic, mvc and activerecord

hi, i am using subsonic 3.0 and active record with a mysql database now everything is fine, but i cant seem to create views see example: public ActionResult Index() { return View(contact.GetPaged(1,20)); } now normally i would right click and choose Add View i would then choose strongly typed and find the class for the...

.NET MVC Call method on different controller

Can anybody tell me how to call a method on a different controller from within an action method? I don't want to redirect. I want to call a method on a different controller that returns a string and use the response within my action method. ...

MVC Coolite ExtJS uploader issue

Hey guys, I have a question regarding the latest version of Coolite which utilizes (2.2.1). I have implemented the FileUploader in two places of my site and one section it works and the other it doesn't. I tried to diagnose it and I can't figure out the issue. Have any of you came across it and solved it at all? It would be very helpfu...

MVC / MVP / MVVM What the Heck?

I recently worked on a .Net WPF project to build a retail point of sale system where I used the MVP pattern for the first time. It took me a little while to wrap my head around the change of approach but once I did that I thought that the concept rocked! My question is this: what is the distinction between MVC, MVP and MVVM? If there is...

make a new behavior for cakephp

i am working on cms in which users submits articles and visitors can vote on those articles, so i am confused. should i make a vote behavior (since it deals with data) or i will me it on a component (because it is an action in my controller) ? help is very appreciated. ...

Spring MVC and Flex integration over BlazeDS???

Hello dear Stackoverflow - community, my quastion is, which is the best way to integrate existent spring-MVC-Project with flex. I'am using Spring-2.5 lib with annotations. e.g my list controller: package xxx.xxx.controller; @Controller public class ListController { @Autowired private ColorHome colorHome; @RequestMapping("/admin/c...

Are there add-on libraries or tools available for ASP.NET MVC development?

My first experience with ASP.NET MVC and the Entity Framework has raised my interest in this framework and I would like to implement some basic applications, covering the basic requirements of real-world web applications. So far the support given by VS 2008 is already impressive. For some areas however, it might be a time saver to use ex...

ASP MVC.NET - how to bind KeyValuePair?

Is it possible to bind such kind of property? public KeyValuePair<string, string> Stuff { get; set; } I've tried to use following code in the view, but it does not work: <%=Html.Text("Stuff", Model.Stuff.Value)%> <%=Html.Hidden("Model.Stuff.Key", Model.Stuff.Key)%> ...

What are the available MVC web frameworks in the Linux world?

I've never done any web development on Linux, and I'm about to start a project that requires it. I love ASP.Net MVC, so what are my availble options on Linux that kind of follow the same principles? The project is a very simple "ecommerce" site (two or three products). There may be other sites to come though that are more complicated. ...

How to publish ASP.NET MVC site using datacontext to external SQL Server?

I am playing with MVC and I made a simple site. I have an seperate machine running SQL Server Express and on it I have a simple table called "Log". The table has ID, Timestamp, and Message fields. I added the database to my "Data Connections" on my "Server Explorer" section. In my MVC website I created a new LINQ to SQL class and dragge...

How to submit with jQuery dialog using buttons with different values

I'd like to use jQuery's dialog to replace some code I'm using right now within an ASP.NET MVC application. The old code used 'submit' buttons with different 'value' settings. I'd like to know also if there is a better approach. This is an example of the existing code within the view: <%using (Html.BeginForm("SubmitValue", ...