I have an bean placed on my action Event.java, the action is Called ManageEvents. I would like the user to be able to add to a struts2 multiple select form field and create a list or map of items (in this case Map where the data would be .
<struts2:select name="event.dj_map" label="Add DJs To Your Event" list="event.dj_map" listsize="...
Hi,
I am trying to update multiple divs using ajax in cakephp with no luck.
I followed some tutorials
http://cakebaker.42dh.com/2006/06/29/how-to-update-multiple-divs-with-ajax/
http://www.reversefolds.com/articles/show/ajax
but it still does not work on firefox 3.5.2
i am doing:
in view
echo $ajax->link('link text', '/controlle...
Hi
I want to send multiple ids that selected with checkboxes to the controller in this code :
<% form_for :product do %>
<table border="1px">
<tr>
<th>
Select
</th>
<th>
Image
</th>
<th>
Product Name
</th>
<th>
Product Descripti...
Using: C#, VS2008
I have the following main form class:
[Main.cs]
namespace Server
{
public partial class PipeServerform : System.Windows.Forms.Form
{
...
}
}
But it's big, and long, and contains GUI + logic code.
So I seperate the class into multiple files for easier management and create this file that only holds the ...
Hi all,
i'm trying to open multiple files at once with the OpenFileDialog, using FileNames instead of FileName. But I cannot see any examples anywhere on how to accomplish this, not even on MSDN. As far as I can tell - there's no documentation on it either. Has anybody done this before??
...
I have at least 4 tables in MySQL for my PHP application (shortened it for this example)
Agents
- Agent_ID
- Agent_Name
Country
- Country_ID
- Country_Name
Job
- Job_ID
- Job_Type
Line_Items
- Line_ID
- Agent_ID
- Country_ID
- Job_ID
Now, I need to select from Line_Items where Agent_ID = 1, and instead of echo-ing the Agent_ID, Coun...
<?php include("admin/db.php");
$recipients = "SELECT * FROM recipients ORDER BY id DESC";
$email_list = $db->query($recipients);
foreach($email_list as $row) {
echo $row['email'].",";
}
$to = "?";
?>
Above I have a comma delimitated list of emails which I need to insert into the $to variable. How do I do this?
...
I am working on a project in which we need to define agencies in other cities. We have the same application but separate database schema for each agency. I used one session factory. For each request we get the person's username and therefore we can recognize which agency they belongs to. We change the PostgreSQL search_path for that....
Example, I have 2 server, each server using a copy of linux cpanel.
I first install free trial script into subfolder reside in Server A.
eg:
sample.com/service/username1
sample.com/service/username2
sample.com/service/username3
Then when people decided to upgrade, I gonna move all files to theirnewdomain.com, including database etc ...
In Wordpress it's possible to create own WP Querys for the loop. An example is this:
$my_query = new WP_Query(array('post_parent' => 3, 'post_type' => 'page'));
Another example is this:
$my_query = new WP_Query(array('cat' => 1, 'post_type' => 'post'));
I want a loop that presents pages AND posts from the same loop.
Now to my ques...
Hi all,
Could you please clarify for me the question asked here.
Why it is important that originally defined class:
public class Metadata<DataType> where DataType : struct
{
private DataType mDataType;
}
is replaced with one derived from the same interface or abstract class is it maybe because IList<> members must share some ...
I've got a gridview where the collums binds its data to the Datagrid.DataContext in Page_Loaded:
private void Shema_Loaded(object sender, RoutedEventArgs e)
{
GridName.DataContext = AllPdiLines;
}
I want a grid where one of the cels in every line contains acombobox with selectable values which then binds to the datagri...
I have a web service that serves widgets. It is hosted on a server under server1.mydomain.com. (Linux, plesk, VPS)
I would like to have more physical servers which will be accessed via server2.mydomain.com etc.
Note that its actually the same domain name pointing to another physical server.
This configuration also has to support SSL.
...
A client has asked about designing a site that might have up to 200 live web cams placed in different places around the country streaming live on the website. What is the best way to do this? Thanks
...
How can i seperately get x,y coordinates and events of multiple mouse attached to the system and identify the mouse uniquely in winforms. What about muliple keyboards as well
NOTE: i am not taking about multiple cursors... all i am taking about is some hook which tells me
that i have mouse 1 & moise 2 attached to the system
and will ...
I have added several UIScrollViews as subviews of a single UIView and set the frames so that each one is clearly visable. I set scrollEnabled to YES and set the contentSize larger than the bounds/frame. I do this in a for loop, and with each pass of the loop I release the UIScrollView (though the object is still stored because it has bee...
I have an application that manages the heavy processing for my project, and need to convert it to a "Windows Service." I need to allow running multiple versions instances of the application processing, which seems to be a fairly normal requirement.
I can see at least three approaches to do this:
Create a single installed directory (E...
This is what my data model classes look like:
public class Employee
{
public string FirstName { get; set; }
public string LastName { get; set; }
public Position Position { get; set; }
}
public class Position
{
public string Title { get; set; }
}
I have a Create view where I want to have two text boxes for first name a...
How do I prevent from including header files twice? The problem is I'm including the in MyClass.h and then I'm including MyClass.h in many files, so it includes multiple times and redefinition error occurs. How to prevent?
I'm using #pragma once instead of include guards, and I guess that's fine.
MyClass.h:
// MyClass.h
#pragma once...
Hello
1) I use Visual Studio 2008 (C#)
2) I want my desktop application to "remember" certain settings (preferences) for every user individually.
3) The application would use its own database of users (logins + passwords), so they have nothing to do with Windows accounts.
How can I accomplish that? Trying to find an answer
4) I've fo...