33
votes
7answers
14k views

Is it possible to determine whether ViewController is presented as Modal?

Is it possible to check inside ViewController class that it is presented as modal view controller?
4
votes
3answers
8k views

accessing Spring MVC DI beans from jsp

Im bit confused so be patient if im trying to do something wrong : -) In some MVC frameworks you can call controller action from the view if you whish to execute some code and render some partial ...
8
votes
3answers
11k views

One controller rendering using another controller's views

I have QuestionController I now have AnotherQuestionController with actions which should render using templates and partials in app/views/question/ Is this possible? Seems like it should be. I've ...
4
votes
1answer
6k views

How do I return List or Collection to Controller from View in MVC 3?

Someone please help me return this list properly from my view. I don't see why I'm returning null for my fieldModelList I try to pass to the controller... Here is my view: @model ...
3
votes
2answers
659 views

How to manage view updates from controllers in a Java Swing app

I'm finding that writing good OO code with Swing is incredibly hard. My problem is essentially that I have a view (a JPanel) that has action listeners. The action listeners figure out which button was ...
0
votes
3answers
215 views

how to call controller function from view in codeignator?

hi everybody m new here with codeignator!! i have a controller as in the following: <?php if(!defined ('BASEPATH')) exit('not found basepath'); class **myController** extends CI_Controller{ ...
2
votes
2answers
290 views

Interact with a view controller from another view controller

I want my view controller to check if there is an image on another view controller when i click a button. But as of now even there is an image the simulator does not execute the loop. Code: - ...
0
votes
1answer
116 views

How to pass values from view to controller in grails

I need to pass the Id value to my controller to execute the action. Currently this is what I have in my controller. def StartServer() { amazonWebService.ec2.startInstances(new ...
0
votes
2answers
450 views

Codeigniter issues with paths in localhost (XAMPP)

The index page (aka homepage.php) in my code igniter install is working fine no matter what. The problem lies with using subdirectories to store other pages, currently its setup like: loading ...
10
votes
4answers
2k views

Rails: URL after validation fails when creating new records via form

Lets say I am creating a new Foo using a form and a standard Rails restful controller, which looks something like this: class FoosController < ApplicationController ... def index @foos = ...
4
votes
1answer
10k views

Upload Photo To MVC 4 Applications

I'm trying to create a controller to upload photos in my MVC4 application. But I keep getting this error. The input is not a valid Base-64 string as it contains a non-base 64 character, more than two ...
2
votes
3answers
2k views

How to create a passcode view iphone

I'd like to add a passcode lock in my app... I created the view but I don't know how to get it working... This is what I'd like it must do: - If an user is setting his passcode, he must type it ...
3
votes
1answer
2k views

How can I add a Dialog View Controller as a Subview to a UIView or Vice Versa?

I have looked around the web for some time looking for any resources on this topic and have come up with nothing that solves my dilemma. I have a dialog view controller and its root is simply ...
0
votes
1answer
2k views

Passing multiple result sets to a view from a controller in ASP.NET MVC?

So I have a controller set up as follows: using NonStockSystem.Models; namespace NonStockSystem.Controllers { [Authorize(Users = "DOMAIN\\rburke")] public class AdminController : Controller ...
2
votes
2answers
4k views

Creating controllers and views for a has_many :through relationship in Rails 3

There are many tutorials that show you how to create the model instructions for a has_many :through relationship in Rails, but there doesn't seem to be many articles related to the process of setting ...

1 2 3
15 30 50 per page