Hello
I am looking into the MVC from a Command line point of view (not web and no framework).. nice and simple. the only thing that confuses me is the View part of this? (well it may not be the only but its the main one)
from the IBM site the view has the following definition
The view provides the
presentation of the model. It is...
I am making a client-server Java app that is going to be MV(C, P) like. My current problem is once the client get's a Player object it needs to tell the GUI that the Player was changed and it should update everything on GUI. (Not too detailed, so entire update shouldn't be bad)
/*
* ClientGUI.java
*
* Created on Dec 10, 2009, 7:51:3...
I have a select list which populates provides an empty value as the first option in the following line. Value = "0" Display = "Select a customer type"
<%= Html.DropDownList("Customer.CustomerType", Model.CustomerTypes, "Select a customer type", new { style = "width:200px" })%>
The problem is when I pick any option (say 1 or 2 or 3) - ...
I'm implementing a modular AI testing engine using the MVC pattern in python.
So far everything's ok: The AIs, mouse, keyboard are controllers, the model is a physic engine, the view is a pygame instance that renders everything. I have an event handler to handle most communication.
Now, I want to implement a menu system (imagine a gam...
Hi all,
I am working on a youth group social network site and everything has gone smooth for the most part. Most problems I have been able to solve myself or google came through. This one is above me and google ain't helping! :(
Can I do this during an ajax request from a view script?
<?php if($this->tools):?>
<?=$this->action('postfo...
Hello,
I have a MVC web application (Ruby, Rack, Apache) and I want it to be restful.
I have a dispatcher that will get incoming URI and call the appropriate controller.
In my mind, a controller is there to handle every actions linked to a single model, I am wrong ?
The thing I am not sure about is a case like the following:
If a user h...
I am trying to use the Model-View-Controller pattern in a small application. The model contains some data and a selection like this
TModelSelection = record
CurrentItem : TItem;
end;
TModel = class
public
property Items : TList <TItem>;
property Selection : TModelSelection;
property Subject : TSubject <TModel>; // Observer...
I have a controller with different methods, but they all have to set a variable containing a list of items to be shown in a box in the view, I extract data from the DB and set $data['categories'].
Can I set it once and have it visible by all methods?
...
I just cannot seem to get my head around what exactly is the MODEL in MVP.
If I have a layered architecture PRESENTATION / APPLICATION / DOMAIN / INFRASTRUCTURE, what exactly is the MODEL?
DOMAIN objects accessed through
lower layers?
A separate object defined in the
PRESENTATION layer that maps to the
UI and uses data obtained from ...
Hello,
I am trying to get a multiple upload library working for my codeigniter based website, I have it working almost but I have a slight problem if I upload more than one image, the file extentions get screwed up, for example, if I upload three JPEGS, I get this in my uploads folder,
image1.jpg
image2.jpg.jpg
image3.jpg.jpg.jpg
I ...
I have a number of ASP.NET applications that use log4net without issue. I have not been able to get log4net to log anything in any of the services I wrote using the MVC libraries. I have the configuration identical (aside from log file name) in all the services. Each service is running as the same user and use the same application pool. ...
Hi ,
I am new to ASP.Net MVC. I am trying to create a google type of search functionality for my drop down list, which has a hugh amount of data. It means when I type the characters the related search items will be filtered. I am not finding the correct parth to do it in ASP.NET MVC environment.This is part of a Data entry form. The fo...
I am iterating through a List of custom data objects and outputing the data to the screen in a pageable format. Each item needs to offer the ability to edit the details (a redirect to another view) and to remove the data. In order to do this I will need to pass an id of some sort to identify the record that is going to be updated or dele...
In an Asp.net MVC application I'd like to encapsulate the ugly wrapper code (just a literal html opening string and another closing string) we use to make corners and shadows compatible with older browsers (we don't use javascript for performance reasons) in a manner compatible with the visual studio design view.
I'd like to put the w...
I am trying to understand how to implement MVC in winforms so I have put together the following;
1.A main form which is divided into 2 panes (left/right) the left pane will display a list of customers.
2.An order details form which will list all the orders placed for the selected customer on the main form.This order details form will be...
I am using MVC .NET in a distributed environment with CSLA and I can reference HttpPostedFileBase from one of my web layers (eg Website.MVC), but I cannot reference HttpPostedFileBase from a separate layer (lets call it OtherLayer.Web).
Any idea on what I need to do to be able to call HttpPostedFileBase ?
I am able to use HttpPostedFi...
Hi,
I have a JQuery UI dialog box. The app allows people to create lists and this dialog lets them specify the listname. Here it is:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>
<% using (Ajax.BeginFo...
I have a problem about structures of the complex applications .Because my knowledge background does not come from education , i have had always problem about application's layers , design patterns and programing structures.First of all , I can do whatever I want with php , because I know common functions and I have experience with php. B...
Hi,
Is it possible to apply MVC pattern to javascript?
...
Hello,
I am interested in reducing the file size of my application. It is a MFC/C++ application built with MVC++ in Visual Studio 2008. UPX does a good job of reducing the final exe to about 40% of its original size but I would like to reduce it more.
MFC must be statically linked in this project.
I have tried some methods outlined in ...