struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: How to get dynamic number of arguments into ActionForm
Date Mon, 05 May 2008 01:00:51 GMT
Why not use Autocompleter?

When used on the "simple" theme, the autocompleter can be used like the 
ComboBox.
When used on the "ajax" theme, the list can be retieved from an action.

http://struts.apache.org/2.0.6/struts2-core/apidocs/org/apache/struts2/components/Autocompleter.html
----- Original Message ----- 
From: "Mead Lai" <laiqinyi@gmail.com>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Sunday, May 04, 2008 8:43 PM
Subject: Re: How to get dynamic number of arguments into ActionForm


> List type
>
> On Sun, May 4, 2008 at 7:51 PM, venkat reddy <venkatonfire@gmail.com> 
> wrote:
>> I'm using struts 1.2.7
>>
>>  I've a poll-posting-form in adminstrator section of my application. 
>> format
>>  of the form is as follows.
>>
>>  pollsubject: String
>>  lastDate:String
>>  choice1:String
>>  choice2:String
>>  .
>>  .
>>  .
>>  <a href="addChoice();">Add another option</a>
>>
>>  As you can see here, the number of choices are dynamic and i want to add 
>> a
>>  link to give the administrator another choice field.
>>
>>  Now, how can i get these dynamic fields into my ActionForm and what type 
>> of
>>  object should i declare in <form-beans> tag. explain in detail plz
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message