Hi,
I'm building an N2-based ASP.NET MVC site, which is part of a larger Windows Azure solution. The problem I am stuck with is integrating in my project N2's own forum add-on, which is basically YAF (Yet Another Forum).
I've been wrestling with the forum for the last couple of days and after re-compiling the add-on to remove the depen...
I've been looking into MEF and Portable areas and the pro's and cons of using these in a collaborative programming environment.
I've found the following article
http://www.thegecko.org/index.php/2010/06/pluggable-mvc-2-0-using-mef-and-strongly-typed-views/
which states
MEF was chosen over other solutions
such as Portable Areas ...
I'm new and learning on how to use MVP - Model View Presenter.
In basic terms MVP was derived from MVC patterns.
I have a project solutions named Model, Controller, Presenter and UI.
Model, Controller and Presenter are reference to each other as the MVC pattern and
UI will reference the Controller.
How can I display the data to UI which...
In the project I am working with, there is a UserDetailServiceImpl class which carries out all of the user-related database lookups.
The problem is, I have gotten into the bad habit of doing non-user-related database lookups there too and using the UserDetailServiceImpl class as a default lookup service to avoid doing database lookups ...
so i have a collection of records. Which have two boxers, match date, location etc...
I want to separate them by months and group them together. Currently I have what is below. And it works to a degree. That looks for matchdates in the future. that is this year and steps through each month (1-12) and finds any matches in that date range...
The DataAnnotations validation happens in the default model binder and most of the examples I've seen uses the Model.IsValid in the Controller to verify if a model is valid or not. Since my controller action calls a business layer method and I like to validate the entity there:
Do I have to explicitly switch off
the model binder valida...
Hello,
I'm very new to MVC and now I'm reading about CakePHP, ZendFramework etc.
I can't understand how can I set one 404 page for missing Admin controller methods and other 404 page for all other controller's methods.
Question is not about ZendFramework, CakePHP etc. - it's about MVC.
I'm writing my own MVC and I can't realize how t...
I am working on creating my own very simple MVC and I am brainstorming ways to go from the controller to the view. Which involves sending variables from a class to just a plain old PHP page.
I am sure that this has been covered before, but I wanted to see what kind of ideas people could come up with.
//this file would be /controller/m...
I'm developing an ecommerce store using MVC and it will feature various health food products. We would like to display the Nutrition Facts label for each product, and am wondering if there is an existing way to do this dynamically without images and if there is a database out there with all the facts we can pull from, to minimize data en...
Hi,
I have a few tables, Listings, ListingImages and a few others related to Listings. ListingImages is related to Listings so that you can have many ListingImages per Listing.
When I query this table I do;
IQueryable<Listing> ListingToSendToView = (from x in DBEntities.ListingSet.Include("ListingImages")
...
Hi
I was wondering when to call from the view a Custom View Helper like this one
<?php
class Zend_View_Helper_MyHelper
{
public $view;
public function setView(Zend_View_Interface $view)
{
$this->view = $view;
}
public function myHelper()
{
return $this->view->escape(’This is being output from the custom helper <br
/>’);
}
}
?>
and an...
Hello,
I want to insert multiple rows in table from single transaction in MVC ASP.net.
Thanks.
...
I got the checkbox working, but I can't remember what modification I have done to my code. it's never working again. it keeps saying:
org.springframework.web.servlet.tags.form.Checkbox Tag -
java.lang.NullPointerException
at org.springframework.web.servlet.tags.form.Selected ValueComparator.exhaustiveCompare(SelectedValueCom parator.ja...
I'm looking for a desktop application framework similar to Rails/Django but for Java desktop GUI's:
Good ORM (xml, db, whatever)
MVC
Default directory structure
View Helpers / CRUD support
Open Source & Mature
Basically, I want to define a large number of models for a desktop application either in Java or schemas and have a simplist...
i can use the methods like :
push removeAt setAt
but how to use the Events ?
like: insert_at remove_at
thanks
...
Hi,
When setting up new ZF Projects i normaly have this directory structure:
application
modules
default
controller
forms
view
models
admin
controller
forms
view
models
language
shared
models
library
public
I use only modules when e.g the layout is diffrent, or a diffrent database is used, or of course when its a very spe...
I've read about HMVC (Hierarchic Model View Controller) and it's flexible structure.
Have a look at this picture:
http://techportal.ibuildings.com/wp-content/uploads/2010/02/MVC-HMVC.png
I wonder if the Rails 3 plugins are the answer to HMVC in Rails 3?
EDIT: Why cant I start a bounty on this one? No bounty button, bug?
...
I am saving a image into database with byte[] property like this:
ProfileModel:
private byte[] _imageData;
public byte[] ImageData
{
get
{
return _imageData;
}
set
{
_imageData = value;
}
}
When I am trying to read image i have problem with converting of byte. I dont know how to convert reader...
most of the time in the service code I would have something like this:
public SomeService : ISomeService
{
ISomeRepository someRepository;
public Do(int id)
{
someRepository.Do(id);
}
}
so it's kinda redundant
so I started to use the repositories directly in the controller
is this ok ? is there some architect...
Hi everyone,
i need to make a form wizard of 3 steps. Each steps can be saved in the database separatly. The steps will be to enter information about an Company, then his Publications and finally his Reservations.
Should i put all the logics in one controller or different controllers? My first thought would be in one controller since t...