mvc

MVC/MVP/MVVM frameworks for Java GUI applications

Can anybody recommend a (preferably open-source) framework for decoupling GUI from model in Java desktop applications? ...

Display Rss Feed in Java Spring mvc

Hi, i implemented a small web application to create Rss feeds in java(spring mvc) i created a page within the application where i display all the Rss(xml files) created this occur reading into the folder where the rss are stored (the Rss are obviously in xml format) the rss path looks like C:\Documents and Settings\Giga\My Documents...

How to check if a variable is defined in a Master file in ASP.NET MVC

I've got a Site.Master file I've created to be my template for the majority of the site, with a navigation. This navigation is dynamically created, based on a recursive Entity (called Page) - Pages with a parentID of 0 are top level, and naturally each child carries it's parent's Id in that field. I've created a quick little HTML Helpe...

Strange "unresolved external symbols" in VC 2005 import library

I have two projects, the dependency library "DEP", and the caller "test.exe". DEP is compiled to DLL with an import library, while "test.exe" links to the "DEP.lib". In DEP, I have classes like: class __declspec(dllexport) C; class A : public C; class B : public C; Later, I make A and B public in the "DEP.dll" using __declspec(dllexpo...

asp.net mvc jquery removing select list item

$('#remove').click(function() { var foo = []; $('#FeatureLists :selected').each(function(i, selected) { foo[i] = $(selected).text(); alert(foo[i]); if (foo[i] != "Add" ) return !$('#FeatureLists option:selected').remove(); if (foo[i] != "Edit") ...

Get controller method caller (3rd party webservice)

Is it possible to retrieve the URL of a 3rd party webservice calling my controller method? Things like Request.Current.Url refer to my own URL (/someController/someAction/). The 3rd party webservice is sending HTTP POST data to my /someController/someAction and I wish to send back a HTTP POST message to the caller of the method, the 3r...

Include models in Cakephp without going through index.php

Hey! I'm using CakePHP to build a site which has a crawler that mines data from different sites. The problem is that I would like to be able to call the crawler from command line (since it can take hours for it to finnish) and I would like to the use models in CakePHP when saving the data. Is there a file I could just include that incl...

How to validate Internet address in asp.net mvc textbox

How to validate Internet address in asp.net mvc textbox like www.gmail.com or http://www.hotmail.com I want to implement jquery client side validation ...

ASP NET MVC custom route fallback

I'm wondering if it is possibile to customize routing in a way that all requests are evaluated by a piece of code, redirected to the relevant controller if a match is found or passed to next rout in list if not found. sample request: /my coolpage/another one the code searches and determine that the right controller for this is Page, ac...

Zend DB MYSQL Wrapper

All, I have a PHP application written in Zend Framework with MVC style. I plan to use Zend_DB to connect to the MySQL database and process queries. I am looking for a wrapper class which makes it easy to use Zend_DB class. This wrapper class will have a constructor that connects to the Mysql db using Zend_DB. It will also have a method ...

What Good way to keep some different data in Cookies in asp.net?

Hello! I want to keep some different data in one cookie file and write this class, and want to know - is this good? For example - user JS enable.When user open his first page on my site, i write to session his GMT time and write with this manager JS state. (GMT time is ajax request with js). And i want to keep some data in this cookie (...

Questions about the MVC architecture

I started coding a considerably complicated web application, and it became quite a mess. So I figured I'd try to organize it in a better way. MVC seemed appropriate. I've never used MVC before, and researching about it I'm trying to consolidate a better perception of it (and my questions obviously reflect what I think I've learned so far...

ASP MVC - Routing Required?

I've been reading up on MVC2 which came in VS2010 and it sounds pretty interesting. I'm actually in the middle of a large multi-tenant application project, and have just started coding the UI. I'm considering changing to MVC as I'm not that far along at this point. I have some questions about the Routing capabilities, namely are they req...

Componentizing complex functionality in an MVC web app

Hi Everyone, This is question about MVC web-app architecture, and how it can be extended to handle componentizing moderately complex units of functionality. I have an MVC style web-app with a customer facing credit card charge page. I've been asked to allow the admins to enter credit card payments as well, for times when credit cards ...

How to show route default value?

I have a route: "{culture}/{controller}/{action}/{id}", new { culture = "en", controller = "Home", action = "Index", id = UrlParameter.Optional } The Url becomes http://mysite.com I want to show the culture name so that the url will look like this: http://mysite.com/en ...

accessing viewmodel data in MVC2.0 view

I am working on my first ASP.NET MVC 2.0 app and realized that I am still confused about the best way to manage views. For debugging, I would like to quickly dump data from several model classes into one view. I created a viewmodel class that combines the data into a single object. public class DBViewModel { public IQuerya...

ASP.NET MVC Authentication Cookie Not Being Retrieved (UPDATED)

I am having a hard time implementing "Remember Me" functionality in an MVC application with a custom principal. I have boiled it down to ASP.NET not retrieving the authentication cookie for me. I have included a snaphot below from Google Chrome. Shows the results of Request.Cookies that is set within the controller action and placed in...

strange data annotations issue in MVC 2

Hello, I came across something strange when creating an edit form with MVC 2. i realised that my error messages come up on form sumission even when i have filled ut valid data! i am using a buddy class which i have configured correctly ( i know that cos i can see my custom errors). Here is the code from the viewmodel that generates thi...

In MVC (Asp.Net MVC specifically), should a model be represented by a single view?

To me, this seems to make little sense, but after reading the information in the following: http://weblogs.asp.net/scottgu/archive/2010/02/05/asp-net-mvc-2-release-candidate-2-now-available.aspx http://bradwilson.typepad.com/blog/2010/01/input-validation-vs-model-validation-in-aspnet-mvc.html http://blog.stevensanderson.com/2010/02/19...

Problem Registering a Generic Repository with Windsor IoC

I’m fairly new to IoC and perhaps my understanding of generics and inheritance is not strong enough for what I’m trying to do. You might find this to be a mess. I have a generic Repository<TEntity> base class: public class Repository<TEntity> where TEntity : class, IEntity { private Table<TEntity> EntityTable; private st...