If you are wanting to do this on the client side via JavaScript, you
won't be using Struts 2 server-side tags. Look around for JavaScript
tutorials about adding form elements. Perhaps one of the popular
JavaScript frameworks like Dojo will be of help here.
Don
On 6/29/07, Luciano Costa <[EMAIL
e in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
- Original Message -
From: "Luciano Costa" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'"
Sent: Friday, Ju
Hi,
I'm trying to implement a "Poll" register form.
The Poll object have "PollOption pollOptions;" property.
How should I show pollOptions in my form, in way that struts can bind the
data with my PollAction.poll property?
I've tried this, but it's not binding:
<@s.textfield name="poll.name" />
.innerHTML = " ";
td.innerHTML += " ";
td.setAttribute("valign", "top");
}
thanks,
Luciano Costa
-Mensagem original-
De: Dave Newton [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 28 de junho de 2007 06:58
Para: Struts Users Mailing List
Assunto
From: Luciano Costa <[EMAIL PROTECTED]>
> I have the "Poll" and "PollOption" objects. In my
> form, I want to be able to add more options to
> my Poll via javascript code.
You didn't include the JavaScript you're using to create the new form elements,
so it's kinda hard to say.
d.
_
5 matches
Mail list logo