mvc

Sharing the model in MVP Winforms App

I'm working on building up an MVP application (C# Winforms). My initial version is at http://stackoverflow.com/questions/1422343/ ... Now I'm increasing the complexity. I've broken out the code to handle two separate text fields into two view/presenter pairs. It's a trivial example, but it's to work out the details of multiple presenters...

Page content disappears with ASP.NET MVC + jquery

I downloaded the jquery files and tried to include them in my Site.Master, and the result is that the page html disappears in both IE and FF. <script src="Content/jquery-1.3.2.min.js" type="text/javascript" /> <script src="Content/jquery-ui/js/jquery-ui-1.7.2.custom.min.js" type="text/javascript" /> Firebug shows the first js file, bu...

Microsoft JScript runtime error: 'Sys.Mvc.AsyncHyperlink' is null or not an object

Hi I'm working on an asp.net ajax mvc application I used Ajax.ActionLink method to add a link for updating span context using ajax, here is some part of my code : ... <span id="status">No Status</span> <%=Ajax.ActionLink("Update Status", "GetStatus", new AjaxOptions { UpdateTargetId = "status" })%> ... but when I run application & c...

Populate a zend_form element from within a forwarded action

I'm pretty sure now that this cannot be done but I would appreciate clarification on why, so I can avoid similar situations in the future! I have a form that when submitted dependent on user input either completes or requires further input with a parameter needing to be passed to the new form. The initial submit works fine and the value...

Are there any Java MVC frameworks that utilize request path patterns instead of defined servlet url patterns?

From what I know of MVC outside of the Java world (PHP and Ruby on Rails), all requests are first sent to the front controller (or dispatcher... or boostrap, etc.), and the front controller looks to the request path pattern in the URL in order to determine what class/method should handle the request. In Java MVC, it appears that servlets...

Custom Validation or Remove Validation on collection of object

We are facing a scenario..here it is: Our Customer Model has collection of Address object. The form displays 3 address for the customer for their input. However only the first address is mandatory. Now our Validation is on the Address Model, something like, "street address cannot be null". So when the form is submitted, the validatio...

How do you handle displaying navigation and sub navigation in an MVC app?

I'm having trouble determining where to place navigation for an MVC app. For example, say you have the following structure: Conferences South Eastern Conference Florida Gators Georgia Bulldogs Arkansas Razorbacks Pac-10 USC Hawaii Big East etc... How would you best create a structure for implementing a 'main' navigation and su...

Ruby on Rails MVC Question

I intend to store in a database a minimal amount of information pertaining to a book (title, isbn). However, on display I'd like to display additional attributes (pages, author, cover image) not stored in the database. I plan on getting this information from the Amazon Web Services (AWS) using Ruby/AWS. I am very new to Ruby on Rails and...

Error Handling in Model (MVC)

I was wondering what the excepted standard is for handling errors in the Model. Currently I have 'setError' and 'getError' methods that's in use by all my Models. This means I'm only concerned with whether a call to a method in my Model is true or false. If it's false then I would use $this->model->getError() in my Controller. Additio...

MVC deployment setup

Does the Visual Studio 2008 Web Deployment Projects handle deployment of ASP.NET MVC applications? If not, what's the best practice for deploying an ASP.NET MVC application? Also what's the best way to handle different versions of configuration files (such as web.config) that will contain different settings depending on what type of bui...

Handling 3xx/4xx requests in a PHP MVC framework?

If say you're utilizing the popular: RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?$1 [L,QSA] And you're trying to make your mvc web framework handle 404's, if you don't find a corresponding view for a specified URI would you just manually send 4...

How do I expose bean in JSP?

How can I expose a Java bean to a JSP page by using struts? I know how to configure a StrutsAction to include a form-bean, but I wonder if there are other ways to interact with Java code from a JSP page? I ask this question because I don't understand fully a likely answer to a problem that I have asked here: http://stackoverflow.com/que...

A potentially dangerous Request.Form value was detected from the client - ASP.NET MVC

I am getting this error in my ASP.NET MVC application where I am taking HTML input from a WYSIWYG so I don't want the content validated. I have attempted the solution I found here but it seems to make no difference in my MVC application. I have also tried doing it in the web.config but again - no joy. Is this a bug in ASP.NET MVC or som...

What do I put in the config.xml file to override linkAction in Downloadable (Magento controller)?

I'm trying to override the linkAction method so that I can serve up downloadables in S3, etc. ...

Problem sending email with SmtpClient in C#

I have an ASP.Net/MVC application and I'm trying to send HTML emails. I'm doing this by reading in an HTML file with tokens, then replacing the tokens. That part is fine and generates HTML that is exactly what I want, but when I send the email, what I'm receiving looks like - <style type=3D"text/css">= =0D=0A.styleTitles=0D=0A{=0D=0Af...

What's the diffrence between a C# blank class and an MVC C# blank class?

Can anyone define the difference between a C# blank class and an MVC C# blank class? ...

Visual Studio can't find 'Borland.Janeva.Services' when running tests

I have an asp.net mvc application with typical unit tests attached. When unit tests run on the main developer's machine, all is well. When the junior guy tries to run them it throws: Warning: Test Run deployment issue: The assembly or module 'Borland.Janeva.Services' directly or indirectly referenced by the test container 'c:_code[m...

How to create Country-->State/Province--->Zip Code drop down using geonames webservice + asp.net

Hello guys, I'm planning to create a cascading dropdown list of Country--> State/Province--->Zip code using geonames. Do you have any good web service or examples? Your reply is greatly appreciated, Best ...

How would I structure this in Zend Framework?

I'm coming from CodeIgniter, and the terminology overlap between it and other MVC frameworks (particularly Zend) is giving me a mental block of some kind. I want my users to visit http://mysite.com/do/this. I understand that "do" is the Controller, and "this" is a function (well, method) within that Controller. My site will have commo...

General on mvc... should controller pass data to view or view should grab it directly from model?

I’m trying to learn and fully understand mvc pattern and learn php at the same time. I decided to built basic mvc framework that I could use on various projects later on. Having read lots of posts in here regarding mvc and coupling between models/views/controllers I’m a bit lost.. At the moment my understanding is that in web applicatio...