Hi, Use the builtin AJAX support for that, or if you really want to use custom Javascript for form generation, then wait for a smarter guy, to help you out. ;)
Regards, Peter 2010-03-24 00:28 keltezéssel, William Chu írta: > Hello, > > Thanks for the help, but I'm still unclear on how to process the input in > the onSubmit() method. > > I'm using a StatelessForm. The user can dynamically add input text fields > (<input type="text" name"foo1" value="..."/>) via javascript. When I process > the form on the server side, how do I loop through the inputs passed back? > > Thanks, > Will > > 2010/3/23 Major Péter <majorpe...@sch.bme.hu> > >> Hi, >> >> If you only need textfields, then the attached quickstart to this issue: >> https://issues.apache.org/jira/browse/WICKET-2432 >> should do it. ;) >> >> Best Regards, >> Peter >> >> 2010-03-23 23:40 keltezéssel, William Chu írta: >>> Hi, >>> >>> Is it possible to dynamically add inputs (Texfields) to a form in Wicket? >>> >>> I am trying to make a form where a user can add an unlimited number of >>> inputs to the form. For example, <input type="text" value=".."/> >>> >>> How can I loop through the inputs that have been dynamically added to the >>> form once it is submitted? >>> >>> <form> >>> <input type="text" name="foo1" value=".."/> >>> <input type="text" name="foo2" value=".."/> >>> .... >>> <input type="text" name="fooN" value=".."/> >>> </form> >>> >>> Thanks! >>> >>> Will --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org