action

Call Project Server Interface web method from an msi installer

I'm using a Visual Studio web setup project to install an application that extends the functionality of Project Server. I want to call a method from the PSI (Project Server Interface) from one of the custom actions of my setup project, but every time a get a "401 Unauthorized access" error. What should I do to be able to access the PSI. ...

How do you find out the ProductCode from a .Net Installer class custom action

I need to know the application's ProductCode in the Installer.OnCommitted callback. There doesn't seem to be an obvious way of determining this. ...

CakePHP: Action runs twice, for no good reason.

Greetings everyone! I have a strange problem with my cake (cake_1.2.0.7296-rc2). My start()-action runs twice, under certain circumstances, even though only one request is made. The triggers seem to be : - loading an object like: $this->Questionnaire->read(null, $questionnaire_id); - accessing $this-data If I disable the call to load...

Alternative to Html.Button<T>?

I know the Html.Button has been moved to the Microsoft.Web.Mvc namespace, but I really miss the generic versions that used to exist in the early Previews. All I want the Html.Button to do is to hit an action in my controller, but I'd rather not write the JavaScript in the onClickMethod argument. In my previous project I just snagged t...

ASP.NET MVC OutputCache doesn't work for root URI

I'm learning ASP.NET MVC and bugged by one issue. In the HomeController, the Index action has OutputCache attribute, but it seems doesn't work. [HandleError] public class HomeController : Controller { [OutputCache(Duration=5, VaryByParam="none")] public ActionResult Index() { ViewData["Title"] = "Home Page" + DateTi...

Rails RESTful controller and rendering after custom action.

How can I render after executing an action in a restful controller instead of redirecting. I have a controller with standard actions, and I added a special action that adds data to the resource in question, via a form on the #show page (Think comments on a post). I am validating the input from the form and want to re-render the show act...

WM_GETTEXT button action

Hi, I would like to tie an action to a PocketPC button (biggest button at the center - don't know how it is called). I tried to tie the action to WM_GETTEXT message, but this message is sent on every key press and don't know how to add an action just to the specific button. Does anyone know how this could be done? Thanks! ...

Symfony Action Security - How to forward after successful authentication?

With Symfony's Action Security if a user has not been identified he will be forwarded to the default login action as defined in the applications settings.yml file. How would I forward the user to the originally requested action after the user is successfully authenticated? ...

Uses of Action delegate in C#

I was working with the Action Delgates in C# in the hope of learning more about them and thinking where they might be useful. Has anybody used the Action Delgate, and if so why? or could you give some examples where it might be useful? ...

Struts2 parameters between actions

I have to pass some parameter from an action to another action,for example to keep trace of an event. What is the best way to do that? I would not use session parameters. Thanks ...

Is it possible to run custom actions during uninstall using InstallShield 2009

I need to run a custom action during uninstallation of a ManagedCode which is a part of the installation (Before it is removed in the uninstall process) Is it possible in Install Shield 2009? ...

How to securely trigger a Swing-Action in a restricted applet?

I simply want to call a swing action from my own popup menu. But since there is a security manager I need a solution to invoke this action without calling it directly. For instance the paste action of a text component will fail, because sun.swing.SwingUtilities2 cannot be loaded if there is any of my classes in the call stack. Is there ...

Custom NSControl target/action howto!

I have a custom NSControl that acts as sort of a two dimensional slider where you can drag a handle around the view. I added a few class specific methods and the only ones I overrode were the mouse actions and drawRect. My question is, how do I get it to implement target action? How can I make it behave like a slider and continuously sen...

What is the difference between form action="" and form action="."?

Is there any difference beween: <form action=""> ... and: <form action="."> ? ...

struts2 problem in action

I've started an application using struts 2.0.14 and web server is apache tomcat 6.0. I am getting an error, please help me to solve this. Application name: strutsTest Welcome page: EmpDetails.jsp in a package named ‘validTest’ having action like: <s:form action="takeAction" method="post> Action class: Employee.java and also I wrote...

Eclipse RCP: Actions VS Commands

Hi, What are differences between Actions and Commands in the context of Eclipse RCP? I know that they both contribute to the menu entries, but which one is better? And why? Of all the online resources I read, I could not get a firm understanding of the differences between both. I have not actually tried to use them, but just wanted ...

c# using Array.ForEach Action Predicate with array of value type or string

Hi, Am I correct in thinking the following snippet does not work (the array items are not modified) because the array is of integer which is value type. class Program { public static void Main() { int[] ints = new int[] { 1,2 }; Array.ForEach(ints, new Action<int>(AddTen)); // ints is not modified...

Which action is executing as a strongly typed object.

I would love to be able to get some strongly typed way of knowing which action is executing. To clarify im doing AOP where I only allow access to a given action if the user has rights for that action. The problem with using a string for determining which rule to check for, is that if some developer renames an action, I wont get a comp...

Zend Framework's Action helper doesn't use a ViewRenderer

Hello. I'm trying to execute an action from the view using the Action helper like but although the action is been executed the output isn't displayed. Here's part of my .phtml file: <div id="active-users"> <?php echo $this->action('active', 'Users') ?> </div> The action works like this: class UsersController extends Zend_Controller_...

action delegate with zero parameters

I see this line in many online examples of using the Action delegate: public event Action MyEvent; But when I try it in my own code, I get this the error Using the generic type 'System.Action' requires '1' type arguments The documentation certainly describes a form of Action without any type parameter. What am I missing? ...