RE: Dynamic list of strings in a form

2008-05-02 Thread Blower, Andy
omFormInjector() { return _newRow; } } > -Original Message- > From: Igor Drobiazko [mailto:[EMAIL PROTECTED] > Sent: 15 April 2008 15:28 > To: Tapestry users > Subject: Re: Dynamic list of strings in a form > > Ups, wrong template url. This o

RE: Dynamic list of strings in a form

2008-05-02 Thread Blower, Andy
l Message- > From: Igor Drobiazko [mailto:[EMAIL PROTECTED] > Sent: 15 April 2008 15:28 > To: Tapestry users > Subject: Re: Dynamic list of strings in a form > > Ups, wrong template url. This one is the correct one: > http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tap

RE: Dynamic list of strings in a form

2008-05-02 Thread Blower, Andy
; -Original Message- > From: Igor Drobiazko [mailto:[EMAIL PROTECTED] > Sent: 15 April 2008 15:28 > To: Tapestry users > Subject: Re: Dynamic list of strings in a form > > Ups, wrong template url. This one is the correct one: > http://svn.apache.org/viewvc/tapestry/ta

Re: Dynamic list of strings in a form

2008-04-23 Thread Michael Dukaczewski
Thank you very much, that was exactly what I was looking for. I am new to tapestry and it was not clear for me how loops are working, but now I understand it. :-) Also many thanks to the other guys that replied. @Marcus: Grid didn’t work for me, because I didn't have any Bean that I could pass.

Re: Dynamic list of strings in a form

2008-04-15 Thread Josh Canfield
Hey Michael, I know a couple of guys have replied, but I think there is a much simpler answer to your problem. drop the item property from your page and add getter/setters that update the your items list based on the index in the loop: @Property private int _index; public String getItem() {

Re: Dynamic list of strings in a form

2008-04-15 Thread Marcus
Hi Michael, Try Grid component instead a Loop. Marcus

Re: Dynamic list of strings in a form

2008-04-15 Thread Francois Armand
Michael Dukaczewski wrote: [...] I have a list of values, the user has to enter. The number of values, that have to be typed in, is dynamic, so the user has to extend the form. The add button works, but the values are not saved. Can someone tell me, that I am do

Re: Dynamic list of strings in a form

2008-04-15 Thread Igor Drobiazko
Ups, wrong template url. This one is the correct one: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/app1/FormInjectorDemo.tml?view=markup On Tue, Apr 15, 2008 at 4:20 PM, Igor Drobiazko <[EMAIL PROTECTED]> wrote: > Have a look at the FormInjector component. This com

Re: Dynamic list of strings in a form

2008-04-15 Thread Igor Drobiazko
Have a look at the FormInjector component. This component is what you need. http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/FormInjector.html An example can be found here: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/jav