Hello,
I have the following Groovy+SwingBuilder code.
In one panel I generate checkboxes and in another panel I want to access the values of the checkboxes. The code looks basically likes this:
def optionsmap = [ foo : "value_foo",
bar : "value_bar"]
SwingBuilder.build()
{
frame(title:'demo1',...
In many leading DDD projects, especially MVC style, I see the UI using display objects that mirror domain entities, rather than using those domain objects directly. This style is obviously for decoupling and separation of concerns, and I personally prefer this style.
But what I'm not sure of, is whether this a strict tenet of DDD, or w...
I'm new to MVC and Business Objects but I'm struggling to understand how to trigger a refresh on a form when an update occurs in my business logic.
This isn't an issue for 95% of my forms because they call the update from the form that needs to be updated.
However, In some cases an inner form does and update that requires an outer form...
While investigating implementing my own IControllerFactory I looked into the the default implementation DefaultControllerFactory and was surprised to see the RequestContext property being set in the CreateController(...) method, and then being referenced in the GetControllerInstance(...) and GetControllerType(...) methods.
The reason fo...
Newbie question. I’m writing an ASP.Net MVC app in VB.Net and have been using NerdDinner as a sample (which is in C#). I’m stuck on the validation process specifically the code found in Models\Dinner.cs . I have tried converting it to VB.Net using http://www.developerfusion.com/tools/convert/csharp-to-vb/ but it chokes on the Yield s...
I have been following some MVC tutorials that connect to a sql mdf database and was wondering if there were any tutuorials that existed out there that show you how to create a data model using an Oracle database. The company I work for uses Oracle on the back end so getting MVC to tie into Oracle as the Model would help me greatly. Thank...
The following criteria has to be met:
stable release (>= 1.0)
strong community (e.g. lots of forum posts)
active development (new releases coming out reasonably often)
good documentation
important: support (plugin, library, component) for embedding videos (videos will be hosted on local server, not on public video service provider). Ex...
I have a view that is used for editing stuff, say Orders. Orders have line items that can be added arbitrarily. So a main view and nested partialviews.
Each partial should have an ajax form for tweaking quantities of each line item or whatever.
Thus:
Html.BeginForm()
{%>
Ship to: blah blah blah
<%
...
I need to either redirect user or show not authorized page according to usertype of the logged in user.
Here is some which would give you an idea.
public ActionResult Index()
{
if (Request.Cookies["isadmin"].Value != "true")
return View("NotAuthorized","Index");
else
return Vi...
I've read a lot of trivial MVC examples of calculators and thermometers but I can't seem to map the pattern to real world applications.
Suppose you have a more complicated scenario. Say you have a website shopping cart which requires users to login before adding to the cart. First, the user sees the product page (/product/detail) and cl...
I have a view that uses a strongly typed ViewData similar to this:
namespace Site.web2.Models
{
public class MySubData
{
public string Note { get; set; }
public bool IsValid { get; set; }
}
public class MyViewData
{
public int DataId { get; set;}
public List<MySubData> SubData { get; s...
Hi, both a newbie to stackoverflow and also a newbie to the world of C# and ASP.NET MVC (lots of learning at the moment!) but an experienced web developer.
So I have a modelling question related to profiles. Firstly, I have looked into using the SQLTableProvider and using the in built profiling system but didn't feel they were suitab...
I am looking for a MVC/MVP (mvp prefferably) framework for my first mono app. There doesn't seem to be too much out there, but I have found the following:
http://www.mvcsharp.org/ http://desktoprails.osl.ull.es/doku.php
I've been looking into both for some time, and MVC# seems to be closer to what I want.
The issue is that MVC# seem...
Hi,
I've been trying to learn asp.net mvc using the videos posted on the asp.net website and I'm running into a problem doing unit testing.
I have a very simple controller that uses Linq to SQL to get an array of objects:
public ActionResult Index()
{
ViewData["Message"] = "Welcome to ASP.NET MVC!";
using (Tra...
Hello All,
I am investigating the use of web frameworks with my Java web-app. My basic requirements are pretty much easy maintainability, testability and no repetition.
I have explored writing my own MVC-type app using some sort of front controller pattern and JSP's for the views. The benefit of this is that I have complete control of ...
I've been programming in Ruby on Rails for a year now. I looked at some of the PHP code of WordPress and its e-Commerce plugin. This is not going to sound professional, but it looked disgusting. Having only done development in an MVC framework, I can't imagine how is it possible to work without those patterns. There also seems to be no a...
I have a webforms website and i would like to convert it to asp.net mvc. Mostly as a learning exercise.
What is the best way to start here?
...
When i click on new project, i dont see ASP.NET MVC Web Application as it describes in:
http://www.asp.net/learn/mvc/tutorial-21-cs.aspx
does anyone know why i wouldn't see this? I have vs 2008 sp1
...
This is a shoutout as I've been spending the last few days learning about .NET and the process has left me a little confused rather than enlightened. Just as a background info, I have knowledge of PHP (have even used CakePHP to create a whole app rather easily) and Rails.
I am wondering if I should pursue ASP.NET or should stick to l...
Like most web developers these days, I'm thoroughly enjoying the benefits of solid MVC architecture for web apps and sites. When doing MVC with PHP, autoloading obviously comes in extremely handy.
I've become a fan of spl_autoload_register over simply defining a single __autoload() function, as this is obviously more flexible if you ar...