mvc

How to recreate faulted WCF proxies stored within a presenter/controller?

Question regarding patterns involving Model-View-Presenter, IOC and WCF (although I imagine the same would apply to MVC): Working on a large-scale Windows Forms implementation using a MVP (Supervising Controller) pattern plus IOC, where Presenters get their dependencies injected. One common type of dependency is a WCF Client Proxy, crea...

Fastest way to code up a quick CRUD app. when I have some reusable java code?

I have to come up with a basic CRUD app. as fast as possible (and by "fast" I mean like 3 days). I considered going with Django, but I don't have a lot of experience with Python/Django, and also I have a complete set of EntityBeans that I need do CRUD on. So I thought reusing them would be better. The resulting CRUD app. should be ...

jquery radiobutton select value

<input type="radio" name="regenerate" value="1" id="cus" /> <input type="radio" name="regenerate" value="2" id="gen" /> <input type="checkbox" name="renerateEmail" id="renerateEmail" /> <div id="txt" style="display:none"><input type="password" name="pass" id="pass" /><br /> <input type="password" name="repas...

PHP Sessions to handle Multiple Servers

All, I have a PHP5 web application written with Zend Framework and MVC. This application is installed on 2 servers with the same setup. Server X has php5/MySql/Apache and Server Y also have the same. We don't have a common DB server between both the servers. My application works when accessed individually via https on Server X and Serv...

MVC building email body

I'm coming from web forms and still very new to MVC. I want to create a contact form that simply emails me the contact information, e.g: FirstName LastName Email Age Company I need to collect about a dozen different fields of information. In web forms it was easy to build the email body just by calling TextBox.Text What's the bes...

Spring MVC and Ajax Operation using JQuery

Hi All, I have a JSP page called CreateProcessGroup.jsp and i use an annotation controller to map requests to CreateProcessGroup.htm to that page. But i m having an interesting issue when i request the page from browser it works, when send a request using jquery $.get method i get 404 (CreateProcessGroup.htm not found) is there a differ...

How to handle role-based views in MVC?

Regardless of the language or MVC framework used, how should I handle different views based on roles? For example (pseudo code): views/post/show: <% show post here %> if (role.isAdmin or role.isModerator) { <% show moderation tools %> } <% show rest of content %> I don't quite like the idea of putting too much business logic into...

MvcContrib Controller Test Returning Weird Results

I have a simple controller test using MvcContrib's test helpers: var controller = new HomeController(); var result = controller.Contact(); result.AssertViewRendered().ForView("Contact").WithViewData<ContactViewModel>(); The only problem is, the controller method currently only returns a view, it is NOT setting a view model yet. Why wo...

How to convert a list of anonymous object to string array using linq for return using Json Result in ASP.NET MVC

I currently have a list of a book object as follows: public class Book() { public int BookId { get; set; } public string Name { get; set; } public string Author { get; set; } } List<Book> books = BookRepository.SelectAll(); I would like to return a string list/array of Authors for return via a Json Result in my action met...

how to pass data from view to model in codeigniter

Hi guys, I'm developing a system with codeigniter, in my situation i have to press a link in one user interface and get it's ID and pass it to the model and get the data relevant to that ID and go to the other interface and display the data in the relevant fields, i know how to pass data from model to view, but i don't know how to pass ...

MVC .NET 4.0 : Image Links

I was recently introduced to the HTMLhelper class....along with MVC in general. Does MVC, or the HtmlHelper class give any alternates for image links...and static links? For example, if I want to display an image on a webpage, do I still have to do the traditional href tag? I.e. <img src='/Content/Images/mypic.jpg' /> or is there...

Relating two models and accessing them with a single controller in Rails

Background: I am playing around with the feedzirra plugin in a rails app, and I am attempting to utilize both the feed and entry accessors of the parsed feed in a single view. To accomplish this, I have created two models: feed and feed_entry. They are as follows: feed.rb: class Feed < ActiveRecord::Base attr_accessible :title, :ur...

Which java webframework for high performance and scalability

I have to design a java based web application, it should support be highly scalable, should support almost 500 concurrent users with response time less than 3 secs. I have short listed 5 frameworks(Struts, Spring MVC, JSF, Wicket and GWT). My questions are: 1.I want to compare the performance of these framworks similar to the way it de...

Is my 3-tier (n-tier) architecture good design?

Hello: I am developing a medium sized ASP.NET project using ASP.NET MVC and Entity Framework. I have developed a 3-tier system by setting up 3 Visual Studio projects and referencing them accordingly: Presentation -- This is my MVC project and contains all the views and controllers. I deleted the model folder completely from this proje...

How to convert a hardcoded website to a PHP MVC framework site?

I would like to convert our college's hard coded website. Should i follow any pattern to achieve efficient & fast Conversion ? kindly guide me. ...

how to implement the idea of mvc design in matlab gui's

hi guys, please am a student working on a project to develop a visualization tool to analyse data using an mvc design in matlab. but the problem im having is that im new to programming and matlab is the first real programing im doing. ive pretty much done the codes but i fear they are no way in an mvc design pattern so i need to change t...

Is this web development approach more MVC or SOA? Or both?

Hi all: My usual way of working on web development is to split the project into three tiers, which are: Data Tier - Accessing Relational Database of all sorts, based on requirements Server Tier - providing services to client-side controller calls. Client Tier - Rendering the view as well as loading the controller javascript. Basi...

What is a django-like framework for PHP with auto-generated CRUD pages?

I'm looking for a simple MVC framework for PHP and would like something that handles basic user auth (for the admin) and generates it's own CRUD pages out of the box. Edit: I'd really like something that creates these admin pages on the fly or "automatically" instead of the whole "baking" concept or having to manually update the CRUD pa...

How to identify whether "Back" button or "Forward" button was pressed?

Hello, I use MVC2/asp.net and try to develope something like a wizard. This wizard will have serveral websites. The user will be able to enter some information on website A and to navigate then to website B (by pressing a button which triggers the Http.Post event). No problem up to this point. Also on website B can the user enter some ...

Spring - using applicationContext.xml and XXXXX-servlet.xml

I am integrating Spring MVC into an existing project I have been working on. By integrating, I mean I am rewriting the project using Spring, and using much of my old code. I have already setup the environment and have began working on it. I will refer to this project as ProjectX. I have already setup and configured my ProjectX-servlet.x...