Here's my problem:
I am disturbed by the "impedance mismatch" between what graphic/web designers actually produce, and what is needed by the standard ASP MVC view engine.
Basically there is no way to visually design a view i.e. the output of an action. No WYSIWIG designer. The only way to go from a static HTML design to an MVC app is b...
I've just installed windows 7 and i'm trying to get my mvc app that was working in IIS 7 working in IIS 7.5.
The problem I have is that when it tries to load any static files (css, gif, jpg...) it requires authentication. So if i try to go to
http://mydomain.com/Content/site.css
It redirects to
http://mydomain.com/Account/LogIn?Re...
Using FireBug I know the url is
http://localhost:21962/Home/DynamicGridData/?nd=1250169669898&%5Fsearch=false&rows=10&page=1&sidx=Id&sord=desc
It is not making it to my HomeController.
Here are the actions I have tried to make receive the JQGrid call
public ActionResult DynamicGridData(long nd, bool search, int row...
When starting the app, if the user doesn't have login information stored, I want to display a modal view controller to force the entry of this information. I found through trial and error, that this had to occur in viewDidAppear of my root view controller. I tried to put it in viewDidLoad and viewWillAppear, but those didn't work unles...
I have the following code:
var obj = new
{
site = new int[]{}
};
UpdateModel(obj, new string[] {"site"}, form.ToValueProvider());
Now when debugging, the form.ToValueProvider() object has a site key in there with some sites that get populated on postback (from a checkbox form with each checkbox...
I'm currently using a very simple MVC framework, Bear Bibeault's Front Man, which, for those not familiar, is pretty similar to Spring MVC (in concept at least). One of the issues I'm having is how to handle exceptions properly.
I am currently doing something like this,
try {
//do something
}catch (Exception ex) {
logger.error(...
I recently added Struts 1.3 to my application on Tomcat. Here are my observations,
MVC. Servlet/JSP does this fine for me, where JSP is the view and servlet is the controller. I don't see any benefit to get the mapping from an XML file since our mapping is very static.
Action Form. I can see some benefits of action form but not huge.
T...
I am looking for an example where JSON constructed from the server side is used to represent objects that are then translated into customized widgets in dojo. The JSON would have to be very specific in its structure, so it would not be a very general solution. Could someone point me to an example of this. It would essentially be the ...
I always come to the same problem when implementing new data object that some web site will use. It seem to me naturaly to fill the object ...
object: news
news subobjects: mediaItems, user, category
I usualy implement lazy loading of associated objects (lists of objects) and also have a static method to fill the news object data, med...
Hello,
I have a question that is pretty similar to this question:
http://stackoverflow.com/questions/899734/strongly-typed-asp-net-mvc-with-entity-framework
but the solutions for that question don't work for me. Let me start by saying that I don't know a great deal about the subject I am asking about.
I have the following code
[Acce...
I'm using a very simple MVC framework, Bear Bibeault's Front Man, which, for those not familiar, is pretty similar to Spring MVC (in concept at least).
For most cases, I am using a JSP as my view. To prevent direct access to the view, I place the JSP files inside the WEB-INF directory.
However, in some cases I need to use a servlet to ...
Hi,
I've written a web application with ASP.NET MVC. The default ControllerFactory has been replaced with Castle Windsor's Controller
ControllerBuilder.Current.SetControllerFactory(new WindsorControllerFactory());
The problem is that I'm using shared hosting which runs II6 so in order to get the MVC working I've had to replace the de...
I was confused when I first read Christer Fahlgren's comment on an answer on this question, where he states you would benifit from using 'MVC style design' when starting an application that uses both Delphi and a WebBrowser component on a form, and HTML with CSS and JavaScript to create a fancy mix of flexible UI and dynamically updating...
I'm buiding a UrlHelper for a route
as in best practices
the problem is that the returned value is always null
when debugging in found that
Url.RouteUrl("x") return null
Url.RouteCollection["X"] return Route
i'm trying to do :
public static string Category(this UrlHelper helper, int Id, string category)
{
return helper.Route...
I'd like to introduce Spring MVC to an application that has up till now used simple direct access to JSP files i.e www.example.com/login.jsp which contains the business logic and presentation details.
I'd like to strip out the business logic and keep only the presentation in the JSP. To do this, I've moved the jsp file from webapp/login...
I want to use the Html Helper class to build, for example, an Html.ActionLink from within a controller action. I don't see it available from within controller actions. What am I missing?
...
I am working in a hybrid MVC/Classical ASP.NET web application and I have to rewrite a URL at the controller level (because at a later stage I will be using a PageView, but for now it would be using the classical ASP.NET one), similar to this:
public void Index(int Id) {
HttpContext.Current.RewritePath("~/classic-aspnet-page.aspx?id="...
Hi all,
I 'am building a small windows form application.
I have a View - a simple form that has some functionality in it.
a Controller - a class that will react to loading, saving, getting data from the model and prepare it form the view etc.
a Model - a class that will get and save data to DB or file.
The controller is creating a fo...
Hi,
I am making an application usign MVC and LINQ.
I have a controller called home which does this:
Dim notes = From x In dal.tbl_notes _
Join y In dal.tbl_note_users On y.user_id Equals x.note_id _
Select x.note, x.datestamp, y.is_owner, y.note_user_id
ViewData("notes") = notes
Return View(...
Normally in the MVC Pattern, when a user clicks on a page the request would be sent ,then controller would handle the request ,then process it using the model and route it to the appropriate view.
I have read the post about the passive model and active model,but is there a possibility where the view directly interacts with the model, wo...